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
|
||||||
}
|
}
|
||||||
@ -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