aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvax Software <[email protected]>2011-04-07 10:20:18 +0200
committerEvax Software <[email protected]>2011-04-07 10:20:18 +0200
commit1f63ccc22740e89ea17abef40773c197b29d7a59 (patch)
tree6f6cc0ba5744006984eadcb70d3f894135f80a35
parent7855b3eea8b8b9fafeb8d947e1c7a70a2e7cf4c5 (diff)
downloadkerl-1f63ccc22740e89ea17abef40773c197b29d7a59.tar.gz
kerl-1f63ccc22740e89ea17abef40773c197b29d7a59.tar.bz2
kerl-1f63ccc22740e89ea17abef40773c197b29d7a59.zip
Fix the "kerl delete build" command
-rwxr-xr-xkerl8
1 files changed, 3 insertions, 5 deletions
diff --git a/kerl b/kerl
index 2004dac..f712c6e 100755
--- a/kerl
+++ b/kerl
@@ -481,11 +481,9 @@ case "$1" in
case "$2" in
build)
rel=`get_release_from_name $3`
- if [ -d "$KERL_BUILD_DIR/$3/otp_src_$rel" ]; then
- rm -Rf $KERL_BUILD_DIR/$3/otp_src_$rel
- rm -Rf $KERL_BUILD_DIR/$3/agner_$rel
- rm -Rf $KERL_BUILD_DIR/$3/release_$rel
- list_remove $2s "$rel $3"
+ if [ -d "$KERL_BUILD_DIR/$3" ]; then
+ rm -Rf "$KERL_BUILD_DIR/$3"
+ list_remove $2s "$rel,$3"
echo "The $3 build has been deleted"
else
echo "No build named $3"