diff options
| author | Christian Rößler | 2013-09-12 14:09:56 +0200 |
|---|---|---|
| committer | Christian Rößler | 2013-09-12 14:09:56 +0200 |
| commit | ad0918ffd57fd7e2b93223d8290b50f530ea817a (patch) | |
| tree | ce4bc94048f503c44e3dd71a0ee16c726462341f /scripts/clone_stage4 | |
| parent | [systemd] Add udev-acl rules (compatibility with CK) (diff) | |
| download | tm-scripts-ad0918ffd57fd7e2b93223d8290b50f530ea817a.tar.gz tm-scripts-ad0918ffd57fd7e2b93223d8290b50f530ea817a.tar.xz tm-scripts-ad0918ffd57fd7e2b93223d8290b50f530ea817a.zip | |
[clone_stage4] Just a little check for 'local' as IP.
Diffstat (limited to 'scripts/clone_stage4')
| -rwxr-xr-x | scripts/clone_stage4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/clone_stage4 b/scripts/clone_stage4 index e24fd416..2704db02 100755 --- a/scripts/clone_stage4 +++ b/scripts/clone_stage4 @@ -18,7 +18,8 @@ qnd_exit() { [ $# -ge 1 ] && kill "$1" } -[ $# -lt 3 ] && perror "$0 <remote_ip> <stage_to_exclude> <target_dir>" +[ $# -lt 3 ] && perror "$0 <remote_ip> <stage_to_exclude> <target_dir>" +[ "$1" = "local" ] && perror 'It is not wise to use "local" as remote IP.' BASE_DIR="${ROOT_DIR}/server/local_builds/$1" BOOT_DIR="${ROOT_DIR}/server/boot/$1" |
