move update scripts to bin

This commit is contained in:
David Todd (c0de)
2018-10-22 23:27:44 -05:00
parent ca8b3bc520
commit 796c474750
5 changed files with 4 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ function _update_dotfiles_update() {
} }
function _upgrade_dotfiles() { function _upgrade_dotfiles() {
env _DOTFILES=$_DOTFILES sh $_DOTFILES/upgrade.sh env _DOTFILES=$_DOTFILES sh $_DOTFILES/.bin/upgrade.sh
# update the zsh file # update the zsh file
_update_dotfiles_update _update_dotfiles_update
} }

2
.gitignore vendored
View File

@@ -4,5 +4,3 @@
*.swo *.swo
*.DS_STORE *.DS_STORE
*desktop.ini *desktop.ini
*bin

View File

@@ -45,9 +45,9 @@ if ! which git >>/dev/null ; then
fi fi
# If the update script exists, try to do a normal update # If the update script exists, try to do a normal update
if [ -x "$basedir/check_for_upgrade.sh" ]; then if [ -x "$basedir/.bin/check_for_upgrade.sh" ]; then
source "$basedir/shell/env" source "$basedir/shell/env"
env _DOTFILES=$basedir DISABLE_UPDATE_PROMPT='FALSE' zsh -f $basedir/check_for_upgrade.sh env _DOTFILES=$basedir DISABLE_UPDATE_PROMPT='FALSE' zsh -f $basedir/.bin/check_for_upgrade.sh
else else
echo "Cloning dotfiles to $basedir" echo "Cloning dotfiles to $basedir"
rm -rf $basedir rm -rf $basedir

View File

@@ -42,7 +42,7 @@ bindkey "^[s" insert-sudo
# Check for updates... # Check for updates...
# Stolen and modified Oh-My-ZSH's update system # Stolen and modified Oh-My-ZSH's update system
if [ "$DISABLE_DOTFILES_AUTO_UPDATE" != "true" ]; then if [ "$DISABLE_DOTFILES_AUTO_UPDATE" != "true" ]; then
env ZSH=$ZSH _DOTFILES=$_DOTFILES DISABLE_UPDATE_PROMPT=$DISABLE_DOTFILES_UPDATE_PROMPT zsh -f $_DOTFILES/check_for_upgrade.sh env ZSH=$ZSH _DOTFILES=$_DOTFILES DISABLE_UPDATE_PROMPT=$DISABLE_DOTFILES_UPDATE_PROMPT zsh -f $_DOTFILES/.bin/check_for_upgrade.sh
fi fi
# Oh-My-ZSH Options below this line # Oh-My-ZSH Options below this line