Skip to content

Commit

Permalink
remove unneeded awk
Browse files Browse the repository at this point in the history
  • Loading branch information
carnager committed Aug 27, 2016
1 parent 70772ef commit 890f25c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buku_run
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Use <span color='${help_color}'>${switch_view}</span> to switch View. <span colo
fi
elif [[ $val -eq 0 ]]; then
if [[ $mode == "bookmarks" ]]; then
id=$(echo "${menu}" | awk -F ' ' '{ print $1 }')
id=$(echo "${menu%% *}")
for bm in ${id}; do
buku -o "${bm}"
done
Expand Down Expand Up @@ -140,9 +140,9 @@ editMenu () {
main
elif [[ $editmenu == "tags: NOTAG" ]]; then
addTags --update
elif [[ $editmenu == "tags:"* ]]; then
elif [[ $editmenu =~ "tags:*" ]]; then
tags="${tags}" editTags
elif [[ $editmenu == "url:"* ]]; then
elif [[ $editmenu =~ "url:*" ]]; then
editBookmark
fi
fi
Expand Down

0 comments on commit 890f25c

Please sign in to comment.