axify: Abort when mkdir(1) failed
authorAlexander Barton <alex@barton.de>
Sat, 20 Dec 2014 14:56:11 +0000 (15:56 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 20 Dec 2014 14:56:11 +0000 (15:56 +0100)
scripts/axify

index ccd7b8db395d9b685c020d031f4ab3e12bf43e93..9f82f16f00efc8ab8875a5b47cc7a601d89e6b3b 100755 (executable)
@@ -25,7 +25,9 @@ fi
 
 # -- Makefile.ax --
 
-[ ! -d "$LIB_D" ] && mkdir -pv "$LIB_D"
+if [ ! -d "$LIB_D" ]; then
+       mkdir -pv "$LIB_D" || exit 1
+fi
 
 target="$LIB_D/`basename "$MAKEFILE_AX"`"
 if [ ! -e "$target" -o "$MAKEFILE_AX" -nt "$target" ]; then