summaryrefslogtreecommitdiffstats
path: root/lib/metadata
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-13 18:50:33 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-13 18:53:16 (EDT)
commit575858a3709d03b6348add5721cd02e320b424bf (patch)
tree3dfe629809b67e2ace96fe959d04bf9795f4a8c5 /lib/metadata
parentbfc5e48be90383aea647a061b8d97518c4274551 (diff)
Protect against cmd operands beginning with "-"
Diffstat (limited to 'lib/metadata')
-rw-r--r--lib/metadata/proteanos.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/metadata/proteanos.sh b/lib/metadata/proteanos.sh
index 6368668..2519433 100644
--- a/lib/metadata/proteanos.sh
+++ b/lib/metadata/proteanos.sh
@@ -104,14 +104,14 @@ _ob_get_distrev()
_ob_get_system_arch()
{
- cat "${SYSCONFDIR}/proteanos_arch" 2>/dev/null || return 1
+ cat -- "${SYSCONFDIR}/proteanos_arch" 2>/dev/null || return 1
return 0
}
_ob_get_system_plat()
{
- cat "${SYSCONFDIR}/proteanos_plat" 2>/dev/null || return 1
+ cat -- "${SYSCONFDIR}/proteanos_plat" 2>/dev/null || return 1
return 0
}