From a1aaa08747664511d28c81e6f7ea8365873c09e5 Mon Sep 17 00:00:00 2001 From: Michael Wolf Date: Sat, 30 Sep 2023 17:27:38 -0600 Subject: [PATCH] Make shfmt happier --- install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 235d472..317aaba 100755 --- a/install.sh +++ b/install.sh @@ -3,13 +3,13 @@ set -uo pipefail IFS=$'\n\t' -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" here=$(pwd) pushd "$DIR" || exit 255 rm -f .root -pwd > .root +pwd >.root popd || exit 255 ret=0 @@ -21,7 +21,7 @@ ret=0 for i in _reformat-common.bash do-reformat.sh would-reformat.sh .root; do if [[ -f "$here"/bin/"$i" ]] ; then dest=$(readlink bin/"$i") - if [[ "$dest" == "$DIR/$i" ]] ; then + if [[ "$dest" == "$DIR/$i" ]]; then echo "$i" is in place, good else echo "$i" exists but it is not a symlink or does not point to the right place @@ -37,9 +37,9 @@ for i in _reformat-common.bash do-reformat.sh would-reformat.sh .root; do fi done -if [[ -f $here/.dir-locals.el ]] ; then +if [[ -f $here/.dir-locals.el ]]; then dest=$(readlink .dir-locals.el) - if [[ "$dest" == "$DIR/_dir-locals.el" ]] ; then + if [[ "$dest" == "$DIR/_dir-locals.el" ]]; then echo .dir-locals.el is in place, good else echo .dir-locals.el exists but it is not a symlink or does not point to