From 673c0f52d7659e3bf90332f757dd94caaefcfd20 Mon Sep 17 00:00:00 2001 From: Paul Haensch Date: Thu, 28 Jun 2018 16:58:18 +0200 Subject: [PATCH] fail conditions --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 66ae46b..8879c09 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ stretch_%_root/: stretch_%_root/bin/sh ${CONFIG} permissions .FORCE touch "$@" stretch_%_config/: stretch_%_root/ ${CONFIG} permissions .FORCE - [ -d "$@" ] && { btrfs subvolume delete "$@" || rm -r "$@"; } + if [ -d "$@" ]; then btrfs subvolume delete "$@" || rm -r "$@"; else true; fi btrfs subvolume snapshot "$<" "$@" || cp -rlv "$<" "$@" cp -av $(addsuffix /*, ${CONFIG}) "$@" -chroot "$@" locale-gen -- 2.39.2