Fix help message generation in backup scripts allowing 0 parameter allowing scripts to accept '$' to show the help message.
This commit is contained in:
parent
1e5bc85e48
commit
7c90b98a44
@ -1,5 +1,5 @@
|
||||
#/bin/bash
|
||||
if [ $# -eq 0 ]; then
|
||||
if [[ "$1" != '$' ]]; then
|
||||
echo "Usage: list.sh [Storage disk root path]";
|
||||
exit 2;
|
||||
fi
|
||||
|
@ -1,6 +1,6 @@
|
||||
#/bin/bash
|
||||
echo "Verify All Backups!";
|
||||
if [ $# -eq 0 ]; then
|
||||
if [[ "$1" != '$' ]]; then
|
||||
echo "Usage: verify-all.sh [Storage disk root path]";
|
||||
exit 2;
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user