From e924fcdf92b3e04b74320478e5cc1c8c1e6e9f61 Mon Sep 17 00:00:00 2001 From: Trevor Brown Date: Sat, 11 Feb 2017 20:46:34 -0500 Subject: [PATCH] Don't change the permissions on files in a plugin's bin directory. --- lib/commands/plugin-add.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/commands/plugin-add.sh b/lib/commands/plugin-add.sh index 9ebeff0..459a878 100644 --- a/lib/commands/plugin-add.sh +++ b/lib/commands/plugin-add.sh @@ -15,9 +15,7 @@ plugin_add_command() { exit 1 else git clone $source_url $plugin_path - if [ $? -eq 0 ]; then - chmod +x $plugin_path/bin/* - else + if [ ! $? -eq 0 ]; then exit 1 fi fi