Exit with code 1 and message if target is neither a regular file nor a directory

pull/11/head
Dominik D. Geyer 12 years ago
parent b82d406108
commit e3ca99840f

@ -95,7 +95,8 @@ elif [ -f $1 ]; then
GITADD="$IN" # add only the selected file to index
GITINCOMMAND="" # no need to add anything more to "commit" call
else
exit
echo >&2 "Error: The target is neither a regular file nor a directory."
exit 1
fi
while true; do

Loading…
Cancel
Save