Have internal compile-dotfile return an error if dotfile is missing

This commit is contained in:
2013-10-20 22:52:50 +01:00
parent 3680d280ca
commit eb1f547ee1

View File

@@ -2,6 +2,11 @@ compile-dotfile() {
local dotfile="$1"
if [ -z "$dotfile" ]; then dotfile="$DOTFILE"; fi
if [ ! -f "$dotfile" ]; then
echo "ERROR: \"$dotfile\" does not exist." >&2
return 1
fi
local output=""
local line=""
while IFS= read line; do