mirror of
https://github.com/starship/starship.git
synced 2024-11-26 10:14:57 +01:00
fix(bash): unbound variable error with STARSHIP_PREEXEC_READY (#5438)
Prevent unbound variable error
This commit is contained in:
parent
45e47e5c29
commit
8168c21293
@ -21,7 +21,7 @@ starship_preexec() {
|
||||
local PREV_LAST_ARG=$1
|
||||
|
||||
# Avoid restarting the timer for commands in the same pipeline
|
||||
if [ "$STARSHIP_PREEXEC_READY" = "true" ]; then
|
||||
if [ "${STARSHIP_PREEXEC_READY:-}" = "true" ]; then
|
||||
STARSHIP_PREEXEC_READY=false
|
||||
STARSHIP_START_TIME=$(::STARSHIP:: time)
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user