diff --git a/bak-old.sh b/bak-old.sh index 2f93e5f..21f59ed 100755 --- a/bak-old.sh +++ b/bak-old.sh @@ -179,23 +179,6 @@ parse_combined(){ ${DEBUG+debug} ### ### if $DEBUG is set ### -############################################################################### -# CHECKING DEPS -################## -deps=(realpath) - -for dep in $deps; do - if command -v "$dep"; then - continue - else - missing=":${dep}" - fi -done - -if [[ -n ${missing} ]]; then - print_err_deps $missing -fi - ############################################################################### # SANITISING PARAMS AND OPTIONS ################################## @@ -244,6 +227,23 @@ while [[ $# -gt 0 ]]; do esac done +############################################################################### +# CHECKING DEPS +################## +deps=(realpath) + +for dep in $deps; do + if command -v "$dep"; then + continue + else + missing=":${dep}" + fi +done + +if [[ -n ${missing} ]]; then + print_err_deps $missing +fi + ############################################################################### # THE ACTUAL COPYING CODE