Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
ale5000-git committed Aug 7, 2023
1 parent 4931d0f commit 86aca23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
9 changes: 8 additions & 1 deletion zip-content/inc/common-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@
# shellcheck disable=SC3043
# SC3043: In POSIX sh, local is undefined

### PREVENTIVE CHECKS ###
### PREVENTIVE CHECKS AND SETTINGS ###

# shellcheck disable=SC3040,SC2015
{
# Unsupported set options may cause the shell to exit (even without set -e), so first try them in a subshell to avoid this issue
(set -o posix 2> /dev/null) && set -o posix || true
(set -o pipefail) && set -o pipefail || true
}

if test -z "${ZIPFILE:-}" || test -z "${TMP_PATH:-}" || test -z "${RECOVERY_PIPE:-}" || test -z "${OUTFD:-}" || test -z "${INPUT_FROM_TERMINAL:-}" || test -z "${DEBUG_LOG_ENABLED:-}"; then
echo 'Some variables are NOT set.'
Expand Down
7 changes: 0 additions & 7 deletions zip-content/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ unset UNZIPOPT
unset UNZIP_OPTS
unset CDPATH

# shellcheck disable=SC3040,SC2015
{
# Unsupported set options may cause the shell to exit (even without set -e), so first try them in a subshell to avoid this issue
(set -o posix 2> /dev/null) && set -o posix || true
(set -o pipefail) && set -o pipefail || true
}

### GLOBAL VARIABLES ###

TMP_PATH="${2:?}"
Expand Down

0 comments on commit 86aca23

Please sign in to comment.