summaryrefslogtreecommitdiff
path: root/bin
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
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')
-rwxr-xr-xbin/mkrc.in4
-rwxr-xr-xbin/rcup.in4
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/mkrc.in b/bin/mkrc.in
index 5b2dea5..5d6af7e 100755
--- a/bin/mkrc.in
+++ b/bin/mkrc.in
@@ -5,8 +5,8 @@
destination() {
local dotfiles_dir="$1"
- local dotless=$2
- local in_host=$3
+ local dotless="$2"
+ local in_host="$3"
local tag="$4"
$DEBUG "destination $dotfiles_dir $dotless $in_host $tag"
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