From 78be217cf70604a6f241f35cc622a5153198c46a Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 3 Jun 2018 18:18:20 +0200 Subject: [PATCH] lib.sh: abort if cd fails --- lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.sh b/lib.sh index 1ce0c33..0329a0f 100644 --- a/lib.sh +++ b/lib.sh @@ -168,7 +168,7 @@ link() { ln -s "$source" "$target" # Go back to the directory where we were before. - cd "$pwd" + cd "$pwd" || return 1 } # Generate a file from a source file using a given command. A warning not to -- 2.45.2