summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-03-14 01:49:57 (EDT)
committer P. J. McDermott <pjm@nac.net>2014-03-14 01:49:57 (EDT)
commit7dd033066ba9d51dd6ee346a3a7fc3b5ca58fa84 (patch)
treecd68e9d27b570fefe30754c45dc17c2f4e5da6af
parent978476229342d8e3af47acceb746ce7429fe83a2 (diff)
binutils.pkg.in/prerm: Protect [ command from "-".
-rw-r--r--binutils.pkg.in/prerm2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils.pkg.in/prerm b/binutils.pkg.in/prerm
index 6966487..c861505 100644
--- a/binutils.pkg.in/prerm
+++ b/binutils.pkg.in/prerm
@@ -1,6 +1,6 @@
#!/bin/sh
-if [ "${1}" = remove ]; then
+if [ "x${1}" = 'xremove' ]; then
if [ "x$(cat /etc/proteanos_arch)" = 'x@PKG_TARGET_ARCH@' ]; then
update-alternatives --remove ar /usr/bin/ar.binutils
update-alternatives --remove strings /usr/bin/strings.binutils