summaryrefslogtreecommitdiffstats
path: root/src/include.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-14 01:36:13 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-14 01:36:13 (EDT)
commit049f1d1434c5e3dc5f1c6a0d57711b33911c3b12 (patch)
tree3a7cd9ab47da1a93efc2b4a37d6064ef3cd8608f /src/include.sh
parent38c211c927c942d30946dfc7caaa5bb6535ea66a (diff)
Protect against cmd operands beginning with "-"
Diffstat (limited to 'src/include.sh')
-rw-r--r--src/include.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include.sh b/src/include.sh
index 72d14f7..71e82ac 100644
--- a/src/include.sh
+++ b/src/include.sh
@@ -166,9 +166,9 @@ include_changes()
"${size}" "${sect}" "${pkg}"
pool_file="pool/$(hash_name "${source}")/${source}"
pool_file="${pool_file}/${pkg}_${binver}_${arch}_${plat}.opk"
- file="$(dirname "${changes}")/${file}"
+ file="$(dirname -- "${changes}")/${file}"
files="${files} ${file}"
- cp -p "${file}" "${base_dir}/${pool_file}"
+ cp -p -- "${file}" "${base_dir}/${pool_file}"
feed_add_package "${chan}" "${dist}" "${arch}" "${plat}" \
"${sect}" "${pkg}" "${size}" "${pool_file}"
done <<-EOF