OSDN Git Service

[fix] : Add dir with fullpath
authorhayao <hayao@fascode.net>
Sun, 8 Aug 2021 02:28:15 +0000 (11:28 +0900)
committerhayao <hayao@fascode.net>
Sun, 8 Aug 2021 02:28:15 +0000 (11:28 +0900)
fascode-gtk-bookmarks/fascode-gtk-bookmarks

index f1014c7..04068f8 100755 (executable)
@@ -141,7 +141,7 @@ add() {
             return 0
         fi
         if [[ -d "${1}" ]]; then
-            dir="${1}"
+            dir="$(realpath "${1}" || exit 1)"
             shift 1
             if [[ -n "${1+SET}" ]] && [[ ! -d "${1}" ]]; then
                 name="${1}"