diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-09-23 11:47:42 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-09-23 11:47:42 +0100 |
commit | fef35900a703ac8401e60a2fb89166b3a7e7a27b (patch) | |
tree | 5f3f599bd96133d7c046abb354bf3d876e7735c8 | |
parent | 6cb1a8772364e96e62cfda74490db9848c885635 (diff) | |
download | tbdiff-fef35900a703ac8401e60a2fb89166b3a7e7a27b.tar.gz |
Use = not == with `test` to be POSIX compatible
-rwxr-xr-x | baserock-system-config-sync/baserock-system-config-sync | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/baserock-system-config-sync/baserock-system-config-sync b/baserock-system-config-sync/baserock-system-config-sync index 2cd9807..061c86c 100755 --- a/baserock-system-config-sync/baserock-system-config-sync +++ b/baserock-system-config-sync/baserock-system-config-sync @@ -54,7 +54,7 @@ check_same_type() { type1="$(file_type $1)" type2="$(file_type $2)" if [ "$type1" != "$type2" ]; then - if [ "$type1" == symlink ] || [ "$type2" == symlink ]; then + if [ "$type1" = symlink ] || [ "$type2" = symlink ]; then # We allow moving content and leaving a compatibility symlink, as # long as the content of the file didn't change. if ! cmp -s "$1" "$2"; then |