Skip to content

Commit 8474502

Browse files
authored
Merge pull request Bash-it#2331 from manandhar01/bash-1-parameter-not-set-issue
2 parents 8b5a8d4 + 294f171 commit 8474502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

themes/powerline/powerline.base.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function __powerline_left_last_segment_padding() {
280280
}
281281

282282
function __powerline_last_status_prompt() {
283-
if [[ "${1?}" -ne 0 ]]; then
283+
if [[ "${1:-0}" -ne 0 ]]; then
284284
printf '%s|%s' "${1}" "${LAST_STATUS_THEME_PROMPT_COLOR-"52"}"
285285
fi
286286
}

0 commit comments

Comments
 (0)