mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Create test files and directories
This commit is contained in:
parent
d84c3b1079
commit
1c23cbc2ad
21
mktest.sh
Normal file
21
mktest.sh
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Create test files and directories
|
||||
|
||||
test -e test && {
|
||||
echo "Remove test and try again"
|
||||
exit 1
|
||||
}
|
||||
|
||||
mkdir test && cd test
|
||||
|
||||
echo 'It works!' > normal.txt
|
||||
ln -s normal.txt ln-normal.txt
|
||||
ln -s normal.txt ln-normal
|
||||
mkdir normal-dir
|
||||
ln -s normal-dir ln-normal-dir
|
||||
ln -s nowhere ln-nowhere
|
||||
mkfifo mk-fifo
|
||||
touch no-access && chmod 000 no-access
|
||||
ln -s ../normal.txt normal-dir/ln-normal.txt
|
||||
ln -s ../normal.txt normal-dir/ln-normal
|
Loading…
Reference in a new issue