From 0342fc284e3d2500dc29f2ed083141c758f67e1e Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 25 Apr 2019 23:46:57 -0400 Subject: src/profile/proteanos.sh: Delimit command operands --- 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" -- cgit v0.9.1