1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-25 04:48:37 -06:00

Added error reporting

This commit is contained in:
Sayantan Santra 2022-01-22 18:46:56 -06:00
parent 77471749d6
commit 78e4407287
2 changed files with 3 additions and 1 deletions

3
makebk
View file

@ -10,8 +10,9 @@ fi
if [ $# -ge 1 ]; then
for f in $@
do
[ -n "$f" ] &&cp "$f"{,.bak}
[ -f "$f" ] &&cp "$f"{,.bak}
done
else
echo "No filenames passed."
exit 1
fi

1
touch2
View file

@ -10,4 +10,5 @@ if [ $# -ge 1 ]; then
done
else
echo "No filenames passed."
exit 1
fi