[CHANGED] Use pushd and popd in configurize.
This commit is contained in:
parent
86ee27cb98
commit
2390d7df2b
1 changed files with 4 additions and 4 deletions
|
|
@ -10,17 +10,17 @@ while [ $# -gt 0 ]; do
|
||||||
echo " * Configurizing $NEWFILE ..."
|
echo " * Configurizing $NEWFILE ..."
|
||||||
mv "$FILE" "$CONFIG/$NEWFILE"
|
mv "$FILE" "$CONFIG/$NEWFILE"
|
||||||
ln -s "$CONFIG/$NEWFILE" "$FILE"
|
ln -s "$CONFIG/$NEWFILE" "$FILE"
|
||||||
cd "$CONFIG"
|
pushd "$CONFIG"
|
||||||
git add "$NEWFILE"
|
git add "$NEWFILE"
|
||||||
git commit -m "[NEW] Configurized '$NEWFILE'"
|
git commit -m "[NEW] Configurized '$NEWFILE'"
|
||||||
cd - >/dev/null
|
popd
|
||||||
done
|
done
|
||||||
|
|
||||||
echo " * $NUMFILES new files/directories"
|
echo " * $NUMFILES new files/directories"
|
||||||
|
|
||||||
echo " * Pushing configs to remote repository ... "
|
echo " * Pushing configs to remote repository ... "
|
||||||
cd "$CONFIG"
|
pushd "$CONFIG"
|
||||||
git push origin master
|
git push origin master
|
||||||
cd - >/dev/null
|
popd
|
||||||
|
|
||||||
echo " * Done"
|
echo " * Done"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue