Skip to content

Commit

Permalink
fix safe_edit variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nyxnor committed Feb 16, 2022
1 parent 8d54cf9 commit 32d78f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ make_shellcheck(){
command -v shellcheck >/dev/null || error_msg "Install shellcheck to review syntax"
notice "${yellow}Checking shell syntax${nocolor}"
## Customize severity with -S [error|warning|info|style]
if ! shellcheck configure.sh etc/onionjuggler/*.conf usr/bin/*; then
if ! shellcheck "${topdir}"/configure.sh "${topdir}"/etc/onionjuggler/*.conf "${topdir}"/usr/bin/*; then
error_msg "Please fix the shellcheck warnings above before pushing!"
fi
}
Expand Down
2 changes: 1 addition & 1 deletion usr/bin/onionjuggler-cli
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ safe_edit(){
[ -w "${TMPDIR:="/tmp"}" ] || export TMPDIR="~"
TMPDIR="${TMPDIR%*/}"
key="${2}"
eval file=$(printf '%s\n' "${key}")
eval file="$(printf '%s\n' '$'"${key}")"
case "${1}" in
tmp)
file_name_tmp="$(mktemp "${TMPDIR}/${file##*/}.XXXXXX")"
Expand Down

0 comments on commit 32d78f5

Please sign in to comment.