mirror of
https://github.com/jimeh/dotify.git
synced 2026-02-19 01:56:39 +00:00
Have internal compile-dotfile return an error if dotfile is missing
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user