From d8f67844737d1ae73699b22a51a57e6ac18c7677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Paulmier?= Date: Thu, 4 Jul 2013 11:21:55 +0200 Subject: [PATCH] fix shell when bash is needed instead of sh --- lib/functions.zsh | 4 ++-- tools/check_for_upgrade.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/functions.zsh b/lib/functions.zsh index 63ab755cf..c0ad78a5f 100644 --- a/lib/functions.zsh +++ b/lib/functions.zsh @@ -3,11 +3,11 @@ function zsh_stats() { } function uninstall_oh_my_zsh() { - /usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/uninstall.sh + /usr/bin/env ZSH=$ZSH bash $ZSH/tools/uninstall.sh } function upgrade_oh_my_zsh() { - /usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh + /usr/bin/env ZSH=$ZSH bash $ZSH/tools/upgrade.sh } function take() { diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh index 581f03a07..73e5e2384 100644 --- a/tools/check_for_upgrade.sh +++ b/tools/check_for_upgrade.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash function _current_epoch() { echo $(($(date +%s) / 60 / 60 / 24)) @@ -9,7 +9,7 @@ function _update_zsh_update() { } function _upgrade_zsh() { - /usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh + /usr/bin/env ZSH=$ZSH bash $ZSH/tools/upgrade.sh # update the zsh file _update_zsh_update }