Replace == on -z
This commit is contained in:
parent
8ca1ae91fa
commit
9fb5fb25f7
@ -267,7 +267,7 @@ EOF
|
|||||||
while [[ ! $line =~ msgid ]] ; do
|
while [[ ! $line =~ msgid ]] ; do
|
||||||
msgstr+=$line
|
msgstr+=$line
|
||||||
read -r line
|
read -r line
|
||||||
if [[ $line == "" ]] ; then
|
if [[ -z $line ]] ; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@ -756,8 +756,8 @@ background_pid () {
|
|||||||
export bg_pid"${arg3}"="$PID" ;;
|
export bg_pid"${arg3}"="$PID" ;;
|
||||||
--end)
|
--end)
|
||||||
PID=$(get_bg_pid bg_pid"${arg3}")
|
PID=$(get_bg_pid bg_pid"${arg3}")
|
||||||
[[ $PID == "" ]] && return 1
|
[[ -z $PID ]] && return 1
|
||||||
wait "$PID" && return 0 ;;
|
wait "$PID" 2>/dev/null && return 0 ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@ -927,12 +927,12 @@ create_pw_comment () {
|
|||||||
PW_SHORTCUT_PROXY="$DESKTOP_NAME_FILE"
|
PW_SHORTCUT_PROXY="$DESKTOP_NAME_FILE"
|
||||||
elif [[ ${PORTPROTON_NAME^^} =~ ${PORTWINE_DB^^} && ${PORTPROTON_NAME} != "${PORTWINE_DB}" ]] \
|
elif [[ ${PORTPROTON_NAME^^} =~ ${PORTWINE_DB^^} && ${PORTPROTON_NAME} != "${PORTWINE_DB}" ]] \
|
||||||
|| [[ ${#PORTPROTON_NAME_ABBR} -gt 2 && ${PORTPROTON_NAME_ABBR^^} =~ ${PORTWINE_DB^^} ]] ; then
|
|| [[ ${#PORTPROTON_NAME_ABBR} -gt 2 && ${PORTPROTON_NAME_ABBR^^} =~ ${PORTWINE_DB^^} ]] ; then
|
||||||
PW_COMMENT_DB="${translations[Launching]} <b>$(print_wrapped "$PORTPROTON_NAME" "50")</b>$(seconds_to_time "$TIME_CURRENT")"
|
PW_COMMENT_DB="${translations[Launching]} <b>$(print_wrapped "$PORTPROTON_NAME" "50")</b>$(seconds_to_time "$TIME_CURRENT")"
|
||||||
PW_SHORTCUT_PROXY="$PORTPROTON_NAME"
|
PW_SHORTCUT_PROXY="$PORTPROTON_NAME"
|
||||||
elif [[ ${FILE_DESCRIPTION^^} =~ ${PORTWINE_DB^^} && ${FILE_DESCRIPTION} != "${PORTWINE_DB}" ]] \
|
elif [[ ${FILE_DESCRIPTION^^} =~ ${PORTWINE_DB^^} && ${FILE_DESCRIPTION} != "${PORTWINE_DB}" ]] \
|
||||||
|| [[ ${#FILE_DESCRIPTION_ABBR} -gt 2 && ${FILE_DESCRIPTION_ABBR^^} =~ ${PORTWINE_DB^^} ]] ; then
|
|| [[ ${#FILE_DESCRIPTION_ABBR} -gt 2 && ${FILE_DESCRIPTION_ABBR^^} =~ ${PORTWINE_DB^^} ]] ; then
|
||||||
PW_COMMENT_DB="${translations[Launching]} <b>$(print_wrapped "$FILE_DESCRIPTION" "50")</b>$(seconds_to_time "$TIME_CURRENT")"
|
PW_COMMENT_DB="${translations[Launching]} <b>$(print_wrapped "$FILE_DESCRIPTION" "50")</b>$(seconds_to_time "$TIME_CURRENT")"
|
||||||
PW_SHORTCUT_PROXY="$FILE_DESCRIPTION"
|
PW_SHORTCUT_PROXY="$FILE_DESCRIPTION"
|
||||||
else
|
else
|
||||||
unset PORTWINE_DB_PROXY PORTWINE_DB_NEW
|
unset PORTWINE_DB_PROXY PORTWINE_DB_NEW
|
||||||
PORTWINE_DB="${PORTWINE_DB//_/ }"
|
PORTWINE_DB="${PORTWINE_DB//_/ }"
|
||||||
@ -1016,10 +1016,10 @@ seconds_to_time () {
|
|||||||
if [[ $minutes =~ ^0$ ]] ; then
|
if [[ $minutes =~ ^0$ ]] ; then
|
||||||
hours=${hours//" ${translations[and]} "/}
|
hours=${hours//" ${translations[and]} "/}
|
||||||
minutes=
|
minutes=
|
||||||
if [[ $days == "" ]] || [[ $hours == "" ]] ; then
|
if [[ -z $days ]] || [[ -z $hours ]] ; then
|
||||||
days=${days//","/}
|
days=${days//","/}
|
||||||
fi
|
fi
|
||||||
if [[ $days == "" ]] && [[ $hours == "" ]] ; then
|
if [[ -z $days ]] && [[ -z $hours ]] ; then
|
||||||
minutes="${translations[less than a minute]}"
|
minutes="${translations[less than a minute]}"
|
||||||
fi
|
fi
|
||||||
elif [[ $minutes =~ ^1$ ]] ; then
|
elif [[ $minutes =~ ^1$ ]] ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user