configure bak-old to print usage when no args are passed

This commit is contained in:
kevinnls
2021-03-16 20:11:34 +05:30
parent a3d7c7887e
commit 8a6e42f0c8

View File

@@ -188,6 +188,10 @@ ${DEBUG+debug} ###
############################################################################### ###############################################################################
# SANITISING PARAMS AND OPTIONS # SANITISING PARAMS AND OPTIONS
################################## ##################################
if [[ $# -eq 0 ]]; then
print_usage
fi
while [[ $# -gt 0 ]]; do while [[ $# -gt 0 ]]; do
case $1 in case $1 in
'-h' ) '-h' )
@@ -239,7 +243,7 @@ done
deps=(realpath) deps=(realpath)
for dep in $deps; do for dep in $deps; do
if command -v "$dep"; then if command -v "$dep" >/dev/null; then
continue continue
else else
missing=":${dep}" missing=":${dep}"