summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/librefetch/librefetch6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch
index 02c74ea..e039e12 100755
--- a/src/librefetch/librefetch
+++ b/src/librefetch/librefetch
@@ -124,11 +124,11 @@ main() {
case ${#extra_opts[@]} in
1)
src="${extra_opts[0]#*://}"
- dst="$(readlink -m "${src##*/}")"
+ dst="$(readlink -m -- "${src##*/}")"
;;
2)
src="${extra_opts[0]#*://}"
- dst="$(readlink -m "${extra_opts[1]}")"
+ dst="$(readlink -m -- "${extra_opts[1]}")"
;;
*)
print "%s: %d non-flag arguments found, expected 1 or 2: %s" "$cmd" ${#extra_opts[@]} >> /dev/stderr
@@ -189,7 +189,7 @@ parse_options() {
-C) mode=create;;
-D) mode=download;;
-g|--geninteg) mode=checksums;;
- -p) BUILDFILE="$(readlink -m "$opt")";;
+ -p) BUILDFILE="$(readlink -m -- "$opt")";;
-V|--version) mode=version;;
-h|--help) mode=help;;
-*)