Skip to content

Commit

Permalink
main: workaround "set -ex"
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Jul 23, 2019
1 parent 797b997 commit 679c743
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ble.pp
Expand Up @@ -83,7 +83,7 @@ function ble/base/restore-bash-options {
[[ $_ble_bash_setu && ! -o nounset ]] && set -u
[[ $_ble_bash_setx && ! -o xtrace ]] && set -x
[[ $_ble_bash_sete && ! -o errexit ]] && set -e
[[ $_ble_bash_nocasematch ]] && shopt -s nocasematch
if [[ $_ble_bash_nocasematch ]]; then shopt -s nocasematch; fi # Note: set -e により && は駄目
}
{
_ble_bash_options_adjusted=
Expand Down Expand Up @@ -122,7 +122,7 @@ function ble/base/adjust-POSIXLY_CORRECT {
ble/base/workaround-POSIXLY_CORRECT
}
function ble/base/restore-POSIXLY_CORRECT {
[[ $_ble_edit_POSIXLY_CORRECT_adjusted ]] || return
if [[ ! $_ble_edit_POSIXLY_CORRECT_adjusted ]]; then return; fi # Note: set -e の為 || は駄目
_ble_edit_POSIXLY_CORRECT_adjusted=
if [[ $_ble_edit_POSIXLY_CORRECT_set ]]; then
POSIXLY_CORRECT=$_ble_edit_POSIXLY_CORRECT
Expand Down

0 comments on commit 679c743

Please sign in to comment.