summaryrefslogtreecommitdiffstats
path: root/remote/setup_target
diff options
context:
space:
mode:
authorMichael Neves2013-04-24 18:19:34 +0200
committerMichael Neves2013-04-24 18:19:34 +0200
commit5c9929d6f698e0d5f00bd68dde8c81d0cd0c64e3 (patch)
treea7ddcf64e4baae091b3605dc129e93fc413ac5d2 /remote/setup_target
parentdelete plymouth/data/etc/systemd... (diff)
downloadtm-scripts-5c9929d6f698e0d5f00bd68dde8c81d0cd0c64e3.tar.gz
tm-scripts-5c9929d6f698e0d5f00bd68dde8c81d0cd0c64e3.tar.xz
tm-scripts-5c9929d6f698e0d5f00bd68dde8c81d0cd0c64e3.zip
fix clean
Diffstat (limited to 'remote/setup_target')
-rwxr-xr-xremote/setup_target3
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