Open megri opened 6 years ago
Makes cbt adhere more to the standard rules of shell scripts.
cbt
This commit
[ … ]
[ "$x" == "$y" ]
[ "$x" = "$y" ]
[ "$x" == "" ]
[ -z "$x" ]
[ "$x" != "" ]
[ -n "$x" ]
[ ! "$x" -eq "$y" ]
[ "$x" -ne "$y" ]
Additional changes
[ -f "$CBT_LOOP_FILE/_KILL_FILE" ]
[ -s "$CBT_LOOP_FILE/_KILL_FILE" ]
All committers have signed the CLA.
Seems like I have to sign the CLA every time I push something... weird. Fixed
Makes
cbt
adhere more to the standard rules of shell scripts.This commit
[ … ]
)[ "$x" == "$y" ]
with[ "$x" = "$y" ]
[ "$x" == "" ]
with[ -z "$x" ]
[ "$x" != "" ]
with[ -n "$x" ]
[ ! "$x" -eq "$y" ]
with[ "$x" -ne "$y" ]
Additional changes
[ -f "$CBT_LOOP_FILE/_KILL_FILE" ]
with[ -s "$CBT_LOOP_FILE/_KILL_FILE" ]
to check if the file exists and has a non-zero size in an attempt to avoid looping over empty lists.