remove while loop for opening links

looks like you can feed the browser multiple links and it works.
This commit is contained in:
NRK
2021-05-01 08:13:50 +06:00
parent bae6ddabc8
commit d477b86c4c

5
sxbm
View File

@ -154,10 +154,7 @@ bm_open(){
die "Too many links\nUse 'sxbm open -f' to force open them all\n\n$( echo "$LINK" )"
fi
while [ "$LINK_NUM" -gt 0 ]; do
$BROWSER $( echo "$LINK" | awk "NR == $LINK_NUM {print \$2}" )
LINK_NUM=$(($LINK_NUM - 1))
done
$BROWSER $( echo "$LINK" | awk '{print $2;gsub(/\n/," ")}' )
}
############