mirror of
https://github.com/samsonjs/bin.git
synced 2026-04-27 14:57:44 +00:00
only clone config if it doesn't exist
This commit is contained in:
parent
cf3382745c
commit
38db6357e3
1 changed files with 3 additions and 1 deletions
4
newbox
4
newbox
|
|
@ -30,7 +30,9 @@ if ! which git >/dev/null 2>&1; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ~
|
cd ~
|
||||||
git clone git://github.com/samsonjs/config || fail "cannot clone config repo"
|
if [[ ! -d config ]]; then
|
||||||
|
git clone git://github.com/samsonjs/config || fail "cannot clone config repo"
|
||||||
|
fi
|
||||||
|
|
||||||
for FILE in config/*; do
|
for FILE in config/*; do
|
||||||
pushd "$HOME"
|
pushd "$HOME"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue