From 46db0b7f14c32876039fc6cea092f80cd6d8ef7e Mon Sep 17 00:00:00 2001 From: Rico Tiongson Date: Wed, 28 Feb 2018 00:48:40 +0800 Subject: [PATCH] [fix-permissions] Use sudo password for permission for /usr/local --- install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install b/install index 36752e1..4554f03 100755 --- a/install +++ b/install @@ -17,7 +17,8 @@ fi abort () { exec echo "Installation aborted" } -mkdir -p $(dirname $CONF_PATH) || abort +sudo mkdir -p $(dirname $CONF_PATH) || abort +sudo chown $USER $(dirname $CONF_PATH) if [ ! -f $CONF_PATH ]; then if [ ! -f $OLD_CONF_PATH ]; then # old config file not found, create from scratch