From 5858603f34506da8f075791fcee7d0ff7cc02768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 12 Nov 2017 17:49:00 +0000 Subject: 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. --- kerl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kerl b/kerl index 9b7bf40..6c6cc89 100755 --- a/kerl +++ b/kerl @@ -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 -- cgit v1.2.3