From b4744938c8e5edba4ca444962d8795b471926330 Mon Sep 17 00:00:00 2001 From: casjay Date: Tue, 11 Oct 2022 16:07:58 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/entrypoint-deno.sh | 9 ++++----- bin/get-deno.sh | 4 ++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/bin/entrypoint-deno.sh b/bin/entrypoint-deno.sh index ea21695..de4a938 100755 --- a/bin/entrypoint-deno.sh +++ b/bin/entrypoint-deno.sh @@ -14,17 +14,16 @@ # @Resource : # @sudo/root : no # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +# Set bash options +[ -n "$DEBUG" ] && set -x +set -o pipefail +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - APPNAME="$(basename "$0" 2>/dev/null)" VERSION="202207101005-git" HOME="${USER_HOME:-$HOME}" USER="${SUDO_USER:-$USER}" RUN_USER="${SUDO_USER:-$USER}" SRC_DIR="${BASH_SOURCE%/*}" -# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# Set bash options -if [[ "$1" == "--debug" ]]; then shift 1 && set -xo pipefail && export SCRIPT_OPTS="--debug" && export _DEBUG="on"; fi -trap 'exitCode=${exitCode:-$?}' EXIT - # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -' __exec_bash() { [ $# -ne 0 ] && exec "${*:-bash -l}" || exec /bin/bash -l; } __find() { ls -A "$*" 2>/dev/null; } diff --git a/bin/get-deno.sh b/bin/get-deno.sh index bd87eab..6950869 100755 --- a/bin/get-deno.sh +++ b/bin/get-deno.sh @@ -14,6 +14,10 @@ # @Resource : # @sudo/root : no # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +# Set bash options +[ -n "$DEBUG" ] && set -x +set -o pipefail +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # AMD64 binary if [ "$(uname -m)" = "amd64" ] || [ "$(uname -m)" = "x86_64" ]; then ARCH=x86_64