From f4f6a0722a3f75b2b1e0d820eb6fc3c9d33fa0eb Mon Sep 17 00:00:00 2001 From: Florian Tham Date: Thu, 16 Feb 2017 12:44:41 +0100 Subject: 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. --- bin/mkrc.in | 4 ++-- bin/rcup.in | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3