From 871a770457df234a3fe672aa5e8e4d3b3369f007 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 29 Jan 2014 17:41:57 +0100 Subject: also don't require stage_to_exclude anymore on command line --- scripts/clone_stage4 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/clone_stage4 b/scripts/clone_stage4 index 339d9eea..8804a57a 100755 --- a/scripts/clone_stage4 +++ b/scripts/clone_stage4 @@ -18,11 +18,12 @@ qnd_exit() { [ $# -ge 1 ] && kill "$1" } -[ $# -lt 3 ] && perror "$0 " -[ "$1" = "local" ] && perror 'It is not wise to use "local" as remote IP.' +[ $# -lt 2 ] && perror "$0 " +[ "$1" = "local" ] && perror 'It is not wise to use "local" as remote IP.' BOOT_DIR="${ROOT_DIR}/server/boot/$1" -TARGET_DIR="$3" +[ $# -eq 3 ] && shift # compat with old calling convention "$0 " +TARGET_DIR="$2" mkdir -p "$TARGET_DIR" mkdir -p "$BOOT_DIR" -- cgit v1.2.3-55-g7522