move update scripts to bin
This commit is contained in:
parent
ca8b3bc520
commit
796c474750
@ -16,7 +16,7 @@ function _update_dotfiles_update() {
|
||||
}
|
||||
|
||||
function _upgrade_dotfiles() {
|
||||
env _DOTFILES=$_DOTFILES sh $_DOTFILES/upgrade.sh
|
||||
env _DOTFILES=$_DOTFILES sh $_DOTFILES/.bin/upgrade.sh
|
||||
# update the zsh file
|
||||
_update_dotfiles_update
|
||||
}
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,5 +4,3 @@
|
||||
*.swo
|
||||
*.DS_STORE
|
||||
*desktop.ini
|
||||
|
||||
*bin
|
||||
|
@ -45,9 +45,9 @@ if ! which git >>/dev/null ; then
|
||||
fi
|
||||
|
||||
# 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"
|
||||
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
|
||||
echo "Cloning dotfiles to $basedir"
|
||||
rm -rf $basedir
|
||||
|
@ -42,7 +42,7 @@ bindkey "^[s" insert-sudo
|
||||
# Check for updates...
|
||||
# Stolen and modified Oh-My-ZSH's update system
|
||||
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
|
||||
|
||||
# Oh-My-ZSH Options below this line
|
||||
|
Loading…
Reference in New Issue
Block a user