Skip to content

Commit

Permalink
Fix shellcheck issues (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira committed Apr 20, 2023
1 parent 53d0801 commit 70ae299
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 70ae299

Please sign in to comment.