[CHANGED] Use pushd and popd in configurize.

This commit is contained in:
Sami Samhuri 2009-11-10 23:19:22 -08:00
parent 86ee27cb98
commit 2390d7df2b

View file

@ -10,17 +10,17 @@ while [ $# -gt 0 ]; do
echo " * Configurizing $NEWFILE ..."
mv "$FILE" "$CONFIG/$NEWFILE"
ln -s "$CONFIG/$NEWFILE" "$FILE"
cd "$CONFIG"
pushd "$CONFIG"
git add "$NEWFILE"
git commit -m "[NEW] Configurized '$NEWFILE'"
cd - >/dev/null
popd
done
echo " * $NUMFILES new files/directories"
echo " * Pushing configs to remote repository ... "
cd "$CONFIG"
pushd "$CONFIG"
git push origin master
cd - >/dev/null
popd
echo " * Done"