make install script shellcheck compliant

This commit is contained in:
2015-09-03 02:14:02 +00:00
parent 2ee0f86ff3
commit 0d02d60068
2 changed files with 8 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
[user] [user]
name = Vasili Svirydau name = Vasili Sviridov
email = vasili.svirydau@move.com email = vasili@sviridov.ca
[push] [push]
default = simple default = simple

View File

@@ -1,17 +1,18 @@
#!/bin/sh #!/bin/bash
# From aaronjensen/dotfiles # From aaronjensen/dotfiles
cd `dirname $0` cd "$(dirname "$0")"
F=`pwd |sed -e "s#$HOME/\?##"` F=$( pwd |sed -e "s#$HOME/\?##" )
for P in * for P in *
do do
# skip setup # skip setup
if [ "$P" = "setup.sh" ]; then continue; fi if [ "$P" = "setup.sh" ]; then continue; fi
if [ "$P" = "README.md" ]; then continue; fi
# ensure permissions # ensure permissions
chmod -R o-rwx,g-rwx $P chmod -R o-rwx,g-rwx "$P"
# skip existing links # skip existing links
if [ -h "$HOME/.$P" ]; then continue; fi if [ -h "$HOME/.$P" ]; then continue; fi