summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-25 23:46:57 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-25 23:46:57 (EDT)
commit0342fc284e3d2500dc29f2ed083141c758f67e1e (patch)
tree9a93ffdf238e847e5efc3891a2d8f092df006030
parent1fae38ae785c42c9dfd93dd2660353b898447f27 (diff)
src/profile/proteanos.sh: Delimit command operands
-rw-r--r--src/profile/proteanos.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/profile/proteanos.sh b/src/profile/proteanos.sh
index f027b65..44a4323 100644
--- a/src/profile/proteanos.sh
+++ b/src/profile/proteanos.sh
@@ -97,7 +97,7 @@ prof_proteanos_select_mirror()
local mirrors_count=
local mirror_num=
- mirrors="$(${WGET} -q -O - \
+ mirrors="$(${WGET} -q -O - -- \
'http://files.proteanos.com/pub/proteanos-mirrors-http')"
mirrors_count=$(printf '%s\n' "${mirrors}" | wc -l)
rand
@@ -121,7 +121,7 @@ prof_proteanos_validate_archplat()
;;
esac
done <<-EOF
- $(${WGET} -q -O - "${mirror}/feeds/${suite}/Manifest" | sed \
+ $(${WGET} -q -O - -- "${mirror}/feeds/${suite}/Manifest" | sed \
's|/[^/]*$||; /^all\//d; /\/all$/d;')
EOF
@@ -244,7 +244,7 @@ prof_proteanos_bind_mount()
case "${arch}" in
*-linux-*)
- mount -o bind "${olddir}" "${newdir}"
+ mount -o bind -- "${olddir}" "${newdir}"
;;
esac
}
@@ -259,7 +259,7 @@ prof_proteanos_bind_umount()
case "${arch}" in
*-linux-*)
- umount "${newdir}"
+ umount -- "${newdir}"
;;
esac
}
@@ -274,8 +274,8 @@ prof_proteanos_configure_system_native()
printf 'disabled\n' >"${root}/etc/rc.policy"
opkg_install_all "${root}"
if [ "x${plat}" = 'xdev' ]; then
- [ -r /etc/resolv.conf ] && cp /etc/resolv.conf "${root}/etc"
- [ -r /etc/hostname ] && cp /etc/hostname "${root}/etc"
+ [ -r /etc/resolv.conf ] && cp -- /etc/resolv.conf "${root}/etc"
+ [ -r /etc/hostname ] && cp -- /etc/hostname "${root}/etc"
else
printf 'enabled\n' >"${root}/etc/rc.policy"
printf 'proteanos\n' >"${root}/etc/hostname"
@@ -295,7 +295,7 @@ prof_proteanos_configure_system_foreign()
printf '%s' "${prof_proteanos_install_service}" \
>"${root}/etc/rc.d/S10install"
- chmod 0755 "${root}/etc/rc.d/S10install"
+ chmod -- 0755 "${root}/etc/rc.d/S10install"
printf 'proteanos\n' >"${root}/etc/hostname"
[ -e "${root}/etc/passwd" ] || printf \
'root::0:0:root:/root:/bin/sh\n' >"${root}/etc/passwd"