install.sh: improve
This commit is contained in:
parent
9b74ff46f9
commit
7a8ecc84b7
10
install.sh
10
install.sh
@ -12,13 +12,13 @@ git submodule update --init --recursive
|
|||||||
|
|
||||||
# if these aren't links, move them out of the way?
|
# if these aren't links, move them out of the way?
|
||||||
for f in ~/.zshrc ~/.profile; do
|
for f in ~/.zshrc ~/.profile; do
|
||||||
if [ -f $f ]; then
|
if [ -f "$f" ]; then
|
||||||
mv $f $f.orig
|
mv "$f" "$f.orig"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -n $1 ]; then
|
if [ -n "$1" ]; then
|
||||||
$STOW -t $HOME $1
|
$STOW -t $HOME "$1"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -36,6 +36,6 @@ for dir in \
|
|||||||
tmux \
|
tmux \
|
||||||
zsh
|
zsh
|
||||||
do
|
do
|
||||||
$STOW -t ~/ $dir
|
$STOW -t $HOME $dir
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user