Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix shellcheck issues #442

Merged
merged 1 commit into from
Apr 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions kerl
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ colorize()

autoclean()
{
if [ ${KERL_AUTOCLEAN:=1} -eq 1 ]; then
if [ "${KERL_AUTOCLEAN:=1}" -eq 1 ]; then
l=n stderr "Removing all artifacts except the logfile"
l=t stderr "(Use KERL_AUTOCLEAN=0 to keep build on failure, if desired)"
# Save LOGFILE
tmplf="$(mktemp "$TMP_DIR"/kerl.XXXXXX)"
test -f "$LOGFILE" && cp -f "$LOGFILE" "$tmplf"
# Cleaning current build
cd - 1>/dev/null 2>&1
cd - 1>/dev/null 2>&1 || exit
test -n "$1" && $0 cleanup "$1"
# Copy LOGFILE back to keep track of all attempts until success
mkdir -p "$(dirname "$LOGFILE")"
Expand Down