summaryrefslogtreecommitdiff
path: root/bin/rcup.in
diff options
context:
space:
mode:
authorGravatar Florian Tham <fgtham@gmail.com>2017-02-16 12:44:41 +0100
committerGravatar Mike Burns <mike@mike-burns.com>2017-02-24 17:25:48 -0500
commitf4f6a0722a3f75b2b1e0d820eb6fc3c9d33fa0eb (patch)
treeeb79079e7292cddcf7f83eca36fb358019202d0c /bin/rcup.in
parent5ea3b46b5359a8bb98757686a212d0fce1f1c34a (diff)
Fixes for the Debian Almquist Shell (dash)
The `[` command, which is a builtin for dash, does not understand the `==` operator; this should be `=` instead. While here, more quotes in more places, including around `$*`. `CONFIG_SHELL=/bin/dash ./configure && make check` reports no failed test. Closes #200.
Diffstat (limited to 'bin/rcup.in')
-rwxr-xr-xbin/rcup.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/rcup.in b/bin/rcup.in
index 932ac56..2fb592d 100755
--- a/bin/rcup.in
+++ b/bin/rcup.in
@@ -136,7 +136,7 @@ is_linked() {
if [ -h "$dest" ]; then
local link_dest=$(readlink $dest)
- [ "$link_dest" == "$src" ]
+ [ "$link_dest" = "$src" ]
else
return 1
fi
@@ -208,7 +208,7 @@ handle_command_line() {
local never_symlink_dirs=
local hostname=
local generate=0
- local args=$*
+ local args="$*"
local undotted=
local never_undotted=
REPLACE_ALL=0