diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-01-05 17:57:42 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-01-05 17:57:42 -0500 |
commit | 72e62c36a8efd9594a65c1352faa8b31f729aef0 (patch) | |
tree | 3f399d06175319fe45c0f432520684bfe8831a0a /src/librefetch/librefetch | |
parent | 54338bc4e01e29603e9ca15a9622b66aa8c84422 (diff) |
librefetch: fix paths being canonicalized incorrectly
Diffstat (limited to 'src/librefetch/librefetch')
-rwxr-xr-x | src/librefetch/librefetch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch index 8225fc6..e3897c7 100755 --- a/src/librefetch/librefetch +++ b/src/librefetch/librefetch @@ -74,7 +74,7 @@ usage() { } main() { - BUILDFILE="$(readlink -m PKGBUILD)" + BUILDFILE="$(realpath -Lm PKGBUILD)" makepkg_opts=() extra_opts=() mode=download-create @@ -143,7 +143,7 @@ main() { # that $MIRRORS is configured. # Canonicalize $dst - dst="$(readlink -m -- "$dst")" + dst="$(realpath -Lm -- "$dst")" # Mode: download ####################################################### @@ -236,7 +236,7 @@ parse_options() { -g|--geninteg) mode=checksums;; -S|--srcbuild) mode=srcbuild;; -M|--makepkg) mode=makepkg;; - -p) BUILDFILE="$(readlink -m -- "$optarg")";; + -p) BUILDFILE="$(realpath -Lm -- "$optarg")";; -h|--help) mode=help;; --) break;; *) |