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]
name = Vasili Svirydau
email = vasili.svirydau@move.com
name = Vasili Sviridov
email = vasili@sviridov.ca
[push]
default = simple
default = simple

View File

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