Change log/err invocations

This commit is contained in:
Salt 2019-06-22 02:39:46 -05:00
parent 22fd36b2b2
commit 8216f7af01

View File

@ -464,6 +464,8 @@ step_execute() {
if [ -z "$_dryrun" ]; then if [ -z "$_dryrun" ]; then
"$file" > "$logfile" 2>&1 & "$file" > "$logfile" 2>&1 &
fi fi
else
err "Could not execute file: \"$filename\""
fi fi
done done
} }
@ -489,7 +491,7 @@ step_postexecute() {
elif has xdg-autostart; then elif has xdg-autostart; then
xdg-autostart ${XDG_CURRENT_DESKTOP:-firestarter} xdg-autostart ${XDG_CURRENT_DESKTOP:-firestarter}
else else
log "Could not find an XDG autostarter" err "Could not find an XDG autostarter"
fi fi
fi fi
# Source in a user script if it exists # Source in a user script if it exists
@ -510,7 +512,7 @@ step_wait() {
exit 0 exit 0
fi fi
done done
log "Could not find WM: \"$target\"" err "Could not find WM: \"$target\""
fi fi
log "Waiting for programs to exit" log "Waiting for programs to exit"
wait wait