diff options
author | Loïc Hoguin <[email protected]> | 2017-11-12 17:49:00 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2017-11-12 17:49:00 +0000 |
commit | 5858603f34506da8f075791fcee7d0ff7cc02768 (patch) | |
tree | fdd6895b6cb6a9ccd37c59039256c71d0e5dec76 | |
parent | 05955483cf2296b52f410e94b6c8d9af7cf7da32 (diff) | |
download | kerl-5858603f34506da8f075791fcee7d0ff7cc02768.tar.gz kerl-5858603f34506da8f075791fcee7d0ff7cc02768.tar.bz2 kerl-5858603f34506da8f075791fcee7d0ff7cc02768.zip |
Fix deleting installation by name
`kerl delete installation` allows deleting by name or path.
Problem is, if you provide the name it tries to check for a
file `"$name"/activate` instead of using the path, and fails.
-rwxr-xr-x | kerl | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -301,7 +301,7 @@ is_valid_installation() name=$(echo "$l" | cut -d " " -f 1) path=$(echo "$l" | cut -d " " -f 2) if [ "$name" = "$1" -o "$path" = "$1" ]; then - if [ -f "$1"/activate ]; then + if [ -f "$path"/activate ]; then return 0 fi fi |