Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
npm install as root with --unsafe-perm flag
Browse files Browse the repository at this point in the history
  • Loading branch information
littleskunk committed Feb 12, 2016
1 parent e6d38af commit e9a52e9
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions driveshare-gui/build-linux-binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,15 @@ for ((i=0; i < $(echo $pulls | jq ". | length"); i++)); do
echo create and upload binary $pullrepository $pullbranch
git clone $pullrepository -b $pullbranch
cd $repositoryname
npm install
npm run release

# run script as root
npm install --unsafe-perm
npm run release --unsafe-perm

# run script as normal user
#npm install
#npm run release

cd releases

filename=$(ls)
Expand Down Expand Up @@ -134,8 +141,14 @@ for ((j=0; j < $(echo $releases | jq ". | length"); j++)); do
echo create and upload binary $repositoryurl $targetbranch
git clone $repositoryurl -b $targetbranch
cd $repositoryname
npm install
npm run release

# run script as root
npm install --unsafe-perm
npm run release --unsafe-perm

# run script as normal user
#npm install
#npm run release
cd releases

filename=$(ls)
Expand Down

0 comments on commit e9a52e9

Please sign in to comment.