summaryrefslogtreecommitdiffstats
path: root/busybox.pkg/prerm
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-03-11 23:29:07 (EDT)
committer P. J. McDermott <pjm@nac.net>2014-03-11 23:29:07 (EDT)
commitdf074bb07c240c37b07bf1d9a5dc35f215eb0a0c (patch)
tree0fce96eaa6fc38c477cfe1a2930022f2f4331dfa /busybox.pkg/prerm
parent7fcc9993cec54d17b32fe99c3da8bce836fc24f5 (diff)
busybox.pkg/prerm: Protect [ command from "-".
Diffstat (limited to 'busybox.pkg/prerm')
-rwxr-xr-xbusybox.pkg/prerm2
1 files changed, 1 insertions, 1 deletions
diff --git a/busybox.pkg/prerm b/busybox.pkg/prerm
index c27fe7e..54b5053 100755
--- a/busybox.pkg/prerm
+++ b/busybox.pkg/prerm
@@ -1,6 +1,6 @@
#!/bin/sh
-if [ "${1}" = remove ]; then
+if [ "x${1}" = 'xremove' ]; then
while read link name prio; do
update-alternatives --remove "${name}" "${link}.busybox"
done </usr/share/busybox/alternatives