Skip to content

Commit 890f25c

Browse files
committed
remove unneeded awk
1 parent 70772ef commit 890f25c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

buku_run

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Use <span color='${help_color}'>${switch_view}</span> to switch View. <span colo
4444
fi
4545
elif [[ $val -eq 0 ]]; then
4646
if [[ $mode == "bookmarks" ]]; then
47-
id=$(echo "${menu}" | awk -F ' ' '{ print $1 }')
47+
id=$(echo "${menu%% *}")
4848
for bm in ${id}; do
4949
buku -o "${bm}"
5050
done
@@ -140,9 +140,9 @@ editMenu () {
140140
main
141141
elif [[ $editmenu == "tags: NOTAG" ]]; then
142142
addTags --update
143-
elif [[ $editmenu == "tags:"* ]]; then
143+
elif [[ $editmenu =~ "tags:*" ]]; then
144144
tags="${tags}" editTags
145-
elif [[ $editmenu == "url:"* ]]; then
145+
elif [[ $editmenu =~ "url:*" ]]; then
146146
editBookmark
147147
fi
148148
fi

0 commit comments

Comments
 (0)