diff --git a/chocpkg/chocpkg b/chocpkg/chocpkg index 3482e53..9afd92c 100755 --- a/chocpkg/chocpkg +++ b/chocpkg/chocpkg @@ -6,7 +6,7 @@ set -eu # path where the script is located. set_chocpkg_root() { # Assume that the package root is one directory up from the script. - if [[ $0 = /* ]]; then + if [[ "$0" = /* ]]; then local script_path="$0" else local script_path="$PWD/${0#./}" @@ -15,8 +15,7 @@ set_chocpkg_root() { CHOCPKG_ROOT=$(dirname "$script_dir") # Build directory must not contain a space, or bad things happen: - case "$CHOCPKG_ROOT" in - *\ *) + if [[ "$CHOCPKG_ROOT" = *\ * ]]; then cat <