get rid of needless if statement

This commit is contained in:
NRK
2021-06-27 22:52:59 +06:00
parent 36672675f4
commit 43e1c3c23d

3
sxbm
View File

@ -155,9 +155,8 @@ bm_open(){
LINK_NUM=$( echo "$LINK" | wc -l ) ||
die "No links found"
if [ "$LINK_NUM" -gt 1 ] && [ -z "$FORCE" ]; then
[ "$LINK_NUM" -gt 1 ] && [ -z "$FORCE" ] &&
die "Too many links\nUse '$APPNAME open -f' to force open them all\n\n$( echo "$LINK" )"
fi
setsid $BROWSER $( echo "$LINK" | awk '{print $2;}' ) 1>/dev/null 2>&1
}