remove while loop for opening links
looks like you can feed the browser multiple links and it works.
This commit is contained in:
5
sxbm
5
sxbm
@ -154,10 +154,7 @@ bm_open(){
|
|||||||
die "Too many links\nUse 'sxbm open -f' to force open them all\n\n$( echo "$LINK" )"
|
die "Too many links\nUse 'sxbm open -f' to force open them all\n\n$( echo "$LINK" )"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while [ "$LINK_NUM" -gt 0 ]; do
|
$BROWSER $( echo "$LINK" | awk '{print $2;gsub(/\n/," ")}' )
|
||||||
$BROWSER $( echo "$LINK" | awk "NR == $LINK_NUM {print \$2}" )
|
|
||||||
LINK_NUM=$(($LINK_NUM - 1))
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
############
|
############
|
||||||
|
|||||||
Reference in New Issue
Block a user