Slight improvements in 1990/jaw/try.sh
chmod +x the scripts so that one needn't use 'sh' (this also helps with shell completion for those who use it).
This commit is contained in:
1 parent
499bb21fc7
commit
a42fc7e12a
1 file changed
+3
-2
+3
-2
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo "Running shark.sh:"
|
echo "Running shark.sh:"
|
||||||
sh shark.sh shark.sh README.md jaw.c try.sh > receive || exit 1
|
./shark.sh shark.sh README.md jaw.c try.sh > receive || exit 1
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
|
||||||
|
|
||||||
@@ -13,9 +13,10 @@ mkdir -p test || exit 0
|
|||||||
|
|
||||||
# make sure we can cd to the new directory
|
# make sure we can cd to the new directory
|
||||||
cd test || exit
|
cd test || exit
|
||||||
|
chmod +x ../receive
|
||||||
# run the script
|
# run the script
|
||||||
echo "Attempting to extract files:"
|
echo "Attempting to extract files:"
|
||||||
sh ../receive
|
../receive
|
||||||
|
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
echo "$ ls -al" 1>&2
|
echo "$ ls -al" 1>&2
|
||||||
|
|||||||
Reference in new issue
Block a user