diff options
author | Evax Software <[email protected]> | 2011-04-07 10:20:18 +0200 |
---|---|---|
committer | Evax Software <[email protected]> | 2011-04-07 10:20:18 +0200 |
commit | 1f63ccc22740e89ea17abef40773c197b29d7a59 (patch) | |
tree | 6f6cc0ba5744006984eadcb70d3f894135f80a35 | |
parent | 7855b3eea8b8b9fafeb8d947e1c7a70a2e7cf4c5 (diff) | |
download | kerl-1f63ccc22740e89ea17abef40773c197b29d7a59.tar.gz kerl-1f63ccc22740e89ea17abef40773c197b29d7a59.tar.bz2 kerl-1f63ccc22740e89ea17abef40773c197b29d7a59.zip |
Fix the "kerl delete build" command
-rwxr-xr-x | kerl | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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" |