Skip to content

Commit bea9bf2

Browse files
committed
Minor change
1 parent 81abc21 commit bea9bf2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

zip-content/addon.d/00-1-microg.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ _init_debug_log()
99
DEBUG_LOG_FILE=''
1010

1111
if command 1> /dev/null -v 'getprop' && test "$(getprop 'zip.common.DEBUG_LOG' '0' || :)" = 1; then
12-
if test -d "${TMPDIR:-/tmp}" && DEBUG_LOG_FILE="${TMPDIR:-/tmp}/debug-a5k.log" && touch "${DEBUG_LOG_FILE:?}"; then DEBUG_LOG=1; fi
12+
if test -d "${TMPDIR:-/tmp}" && DEBUG_LOG_FILE="${TMPDIR:-/tmp}/debug-a5k.log"; then :; else test -d '/postinstall/tmp' && DEBUG_LOG_FILE='/postinstall/tmp/debug-a5k.log'; fi
13+
if test -n "${DEBUG_LOG_FILE?}" && touch "${DEBUG_LOG_FILE:?}"; then DEBUG_LOG=1; fi
1314
fi
1415
}
1516

@@ -24,6 +25,7 @@ _display_msg()
2425
command . /tmp/backuptool.functions || {
2526
_init_debug_log
2627
_display_msg 1>&2 'ERROR: Failed to source backuptool.functions'
28+
# shellcheck disable=SC2317
2729
return 9 || exit 9
2830
}
2931

0 commit comments

Comments
 (0)