Added shebash line and fix some issues

This commit is contained in:
Toan Nguyen
2017-03-20 19:51:00 +07:00
parent 14d571a5d5
commit ea1c9371e1
17 changed files with 207 additions and 135 deletions

View File

@@ -7,7 +7,7 @@ function _current_epoch() {
}
function _update_osh_update() {
echo "LAST_EPOCH=$(_current_epoch)" >! ~/.osh-update
echo "LAST_EPOCH=$(_current_epoch)" >| ~/.osh-update
}
function _upgrade_osh() {
@@ -42,7 +42,7 @@ if mkdir "$OSH/log/update.lock" 2>/dev/null; then
if [ "$DISABLE_UPDATE_PROMPT" = "true" ]; then
_upgrade_osh
else
echo "[Oh My Zsh] Would you like to check for updates? [Y/n]: \c"
echo "[Oh My Bash] Would you like to check for updates? [Y/n]: \c"
read line
if [[ "$line" == Y* ]] || [[ "$line" == y* ]] || [ -z "$line" ]; then
_upgrade_osh