From 68a87ad826f30b3d5f137ad041e0ff75bbee5552 Mon Sep 17 00:00:00 2001 From: tncga Date: Tue, 25 Jun 2019 13:52:45 +0300 Subject: [PATCH] run npm as normal user --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 7aafaea..de49779 100755 --- a/install.sh +++ b/install.sh @@ -29,7 +29,7 @@ if [ ! -x "$(command -v electron-packager)" ]; then fi echo -e "\e[1;34m[1/4]\e[0m \e[94mBuilding...\e[0m" -npm run build:linux-x64 1>/dev/null +sudo -u $USER npm run build:linux-x64 1>/dev/null echo -e "\e[1;34m[2/4]\e[0m \e[94mOld installation removing...\e[0m" sudo rm -rf /opt/whatsapp/