From 0e042e7523a41bb9ba2cd634d4e4451b3bedf77f Mon Sep 17 00:00:00 2001 From: Sylvain Chevallier Date: Wed, 11 Jan 2017 16:27:48 +0100 Subject: [PATCH] excludes after files --- mkstage4.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkstage4.sh b/mkstage4.sh index 1ef79c9..5753b31 100755 --- a/mkstage4.sh +++ b/mkstage4.sh @@ -145,7 +145,7 @@ then echo "example: \$ `basename $0` -s /my-backup --exclude=/etc/ssh/ssh_host*" echo "" echo "COMMAND LINE PREVIEW:" - echo "cd $TARGET && tar $TAR_OPTIONS $EXCLUDES $OPTIONS -f $STAGE4_FILENAME *" + echo "cd $TARGET && tar $TAR_OPTIONS -f $STAGE4_FILENAME * $EXCLUDES $OPTIONS" echo "" echo -n "Type \"yes\" to continue or anything else to quit: " read AGREE @@ -154,7 +154,7 @@ fi # start stage4 creation: if [ "$AGREE" == "yes" ] then - cd $TARGET && tar $TAR_OPTIONS $EXCLUDES $OPTIONS -f $STAGE4_FILENAME * + cd $TARGET && tar $TAR_OPTIONS -f $STAGE4_FILENAME * $EXCLUDES $OPTIONS fi exit 0