Skip to content

Commit

Permalink
install.sh: Improve error message when source is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Mar 11, 2021
1 parent 9899ad0 commit 4a02800
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ function install_if()
local dst="$2"
shift 2

true < "$src" || exit 1

if need_update "$src" "$dst"; then
dir="$(dirname "$dst")"
test -d "$dir" || mkdir -p "$dir"
Expand Down

0 comments on commit 4a02800

Please sign in to comment.