OSDN Git Service
(root)
/
alterlinux
/
fascode-live-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
925ed92
)
[fix] : Fixed relative path
author
hayao
<hayao@fascode.net>
Tue, 19 Jan 2021 12:50:12 +0000
(21:50 +0900)
committer
hayao
<hayao@fascode.net>
Tue, 19 Jan 2021 12:50:12 +0000
(21:50 +0900)
alterlinux-gtk-bookmarks/alterlinux-gtk-bookmarks
patch
|
blob
|
history
diff --git
a/alterlinux-gtk-bookmarks/alterlinux-gtk-bookmarks
b/alterlinux-gtk-bookmarks/alterlinux-gtk-bookmarks
index
d180410
..
259b633
100755
(executable)
--- a/
alterlinux-gtk-bookmarks/alterlinux-gtk-bookmarks
+++ b/
alterlinux-gtk-bookmarks/alterlinux-gtk-bookmarks
@@
-87,8
+87,10
@@
delete() {
fi
local _dir _count _line_contain _remove_line=() _url _remove_count i=1
for (( i = 1; i <= "${#}"; i++)); do
+ cd "${PWD}"
_dir="$(eval echo '$'${i})"
_url="$(realpath "${_dir}" | sed "s/ /%20/g")"
+ cd "${OLDPWD}"
for _count in $(seq 1 $(cat "${bookmark_file}" | wc -l )); do
_line_contain="$(cat "${bookmark_file}" | head -n "${_count}" | tail -n 1 | cut -d ' ' -f 1)"
_line_contain="${_line_contain#file://}"