guess the user name if not present in cyryl
This commit is contained in:
parent
711ebfcc80
commit
1de46b96fe
1 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -v
|
||||
echo
|
||||
echo "configuring settings common among OSes"
|
||||
sudo true
|
||||
|
@ -119,6 +120,10 @@ sudo npm install -g diff-so-fancy
|
|||
echo "installing vdirsyncer"
|
||||
sudo pip install vdirsyncer
|
||||
|
||||
if [[ -z $USER ]]; then
|
||||
USER=`whoami`
|
||||
fi
|
||||
|
||||
# normalize npm permissions
|
||||
mkdir -p $HOME/.npm
|
||||
sudo chown $USER $HOME/.npm -R
|
||||
|
|
Loading…
Reference in a new issue