Fail if no file is available

This commit is contained in:
Jack L. Frost 2015-02-01 17:34:26 +03:00
parent 909fc31f46
commit 9695ac5418
1 changed files with 5 additions and 0 deletions

5
sup
View File

@ -163,6 +163,11 @@ main() {
}
else
file="$target"
[[ -f "$file" ]] || {
sup.err "No such file: ${file}"
return 1
}
fi
fi