autopush by david@ghost
This commit is contained in:
parent
d3a37f1bd9
commit
a7e8b290d2
|
@ -60,7 +60,6 @@ installmyzsh()
|
||||||
rm -rf ~/.myzsh
|
rm -rf ~/.myzsh
|
||||||
choice="null"
|
choice="null"
|
||||||
while [ $choice != "y" ] && [ $choice != "n" ]; do
|
while [ $choice != "y" ] && [ $choice != "n" ]; do
|
||||||
echo ""
|
|
||||||
read -p "[myzsh]: should i clone myzsh writeable? [y/n]" choice
|
read -p "[myzsh]: should i clone myzsh writeable? [y/n]" choice
|
||||||
if [ $choice == "y" ]; then
|
if [ $choice == "y" ]; then
|
||||||
git clone git@socialg.it:david/myzsh.git ~/.myzsh
|
git clone git@socialg.it:david/myzsh.git ~/.myzsh
|
||||||
|
@ -89,10 +88,8 @@ installmyzsh()
|
||||||
|
|
||||||
if [ -d ~/.myzsh ]; then
|
if [ -d ~/.myzsh ]; then
|
||||||
echo "[myzsh]: it seems i have already been set up."
|
echo "[myzsh]: it seems i have already been set up."
|
||||||
choice="null"
|
read -p "[myzsh]: should i cleanup & reinstall? [y/n]" choice
|
||||||
read -p "[myzsh]: should i cleanup and reinstall? [y/n]" choice
|
if [ -n $choice ] || [ $choice == "y" ]; then
|
||||||
echo "debug: $choice"
|
|
||||||
if [ $choice == "y" ]; then
|
|
||||||
installdeps
|
installdeps
|
||||||
installmyzsh
|
installmyzsh
|
||||||
else
|
else
|
||||||
|
|
Reference in New Issue