Make shfmt happier
This commit is contained in:
10
install.sh
10
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
|
||||
|
||||
Reference in New Issue
Block a user