Skip to content

Commit

Permalink
fix(update.sh): drop stacktrace (pacstall#1163)
Browse files Browse the repository at this point in the history
Co-authored-by: ook37 <[email protected]>
  • Loading branch information
oklopfer and ook37 authored Jul 3, 2024
1 parent 5e22813 commit c31ae6f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions misc/scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
# Update should be self-contained and should use mutable functions or variables
# Color variables are ok, while "$USERNAME" and "$BRANCH" are needed

{ ignore_stack=false; set -o pipefail; trap stacktrace ERR RETURN; }

export BOLD='\033[1m'
export NC='\033[0m'
export UCyan='\033[4;36m'
Expand All @@ -48,8 +46,6 @@ pacstall_deps=(
)

function suggested_solution() {
# shellcheck disable=SC2034
{ ignore_stack=false; set -o pipefail; trap stacktrace ERR RETURN; }
if [[ -z $PACSTALL_SUPPRESS_SOLUTIONS ]]; then
local inputs=("${@}")
if ((${#inputs[@]} > 1)); then
Expand All @@ -64,7 +60,9 @@ function suggested_solution() {
fi
}

mkdir -p "${METADIR}" "${LOGDIR}" "${MANDIR}" "${BASH_COMPLETION_DIR}" "${FISH_COMPLETION_DIR}"
for i in "${METADIR}" "${LOGDIR}" "${MANDIR}" "${BASH_COMPLETION_DIR}" "${FISH_COMPLETION_DIR}"; do
mkdir -p "${i}"
done

for pkg in "${pacstall_deps[@]}"; do
if ! dpkg -s "${pkg}" > /dev/null 2>&1; then
Expand Down

0 comments on commit c31ae6f

Please sign in to comment.