From fa8fa53e4889ccd4eb9803c3e30816c7b7503a75 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Fri, 3 Jun 2022 14:50:32 -0400 Subject: [PATCH] fix #3 don't error out if the command -v is in ~/bin --- tilde | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tilde b/tilde index 1d30979..913468b 100755 --- a/tilde +++ b/tilde @@ -110,7 +110,9 @@ verify_script_name() { fi if command -v "$1"; then - error_exit "$1 already exists. rename your script and try again." + if [ "$(command -v "$1")" != "/home/$user/bin/$1" ]; then + error_exit "$1 already exists. rename your script and try again." + fi fi if [ -x "/tilde/bin/$1" ]; then