diff options
author | Michael Neves | 2013-04-24 18:19:34 +0200 |
---|---|---|
committer | Michael Neves | 2013-04-24 18:19:34 +0200 |
commit | 5c9929d6f698e0d5f00bd68dde8c81d0cd0c64e3 (patch) | |
tree | a7ddcf64e4baae091b3605dc129e93fc413ac5d2 /remote/setup_target | |
parent | delete plymouth/data/etc/systemd... (diff) | |
download | tm-scripts-5c9929d6f698e0d5f00bd68dde8c81d0cd0c64e3.tar.gz tm-scripts-5c9929d6f698e0d5f00bd68dde8c81d0cd0c64e3.tar.xz tm-scripts-5c9929d6f698e0d5f00bd68dde8c81d0cd0c64e3.zip |
fix clean
Diffstat (limited to 'remote/setup_target')
-rwxr-xr-x | remote/setup_target | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/remote/setup_target b/remote/setup_target index 3152cf04..1f4840b8 100755 --- a/remote/setup_target +++ b/remote/setup_target @@ -255,11 +255,12 @@ fi clean_modules() { TARGET=$1 + shift TARGET_DIR="${MODE_DIR}/targets/${TARGET}" TARGET_BUILD_DIR="${MODE_DIR}/builds/${TARGET}" [ -d $TARGET_DIR ] || perror "Given target directory does not exist: $TARGET_DIR" - if [ "x$2" = "x" -o "x$2" = "xall" ]; then + if [ "x$1" = "x" -o "x$1" = "xall" ]; then if [ -e ${ROOT_DIR}/logs/${TARGET}.size ]; then rm "${ROOT_DIR}/logs/${TARGET}.size" || perror "Could not delete logs/${TARGET}.size" fi |