Make shfmt happier
This commit is contained in:
10
install.sh
10
install.sh
@@ -3,13 +3,13 @@
|
|||||||
set -uo pipefail
|
set -uo pipefail
|
||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
|
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
|
||||||
here=$(pwd)
|
here=$(pwd)
|
||||||
|
|
||||||
pushd "$DIR" || exit 255
|
pushd "$DIR" || exit 255
|
||||||
rm -f .root
|
rm -f .root
|
||||||
pwd > .root
|
pwd >.root
|
||||||
popd || exit 255
|
popd || exit 255
|
||||||
|
|
||||||
ret=0
|
ret=0
|
||||||
@@ -21,7 +21,7 @@ ret=0
|
|||||||
for i in _reformat-common.bash do-reformat.sh would-reformat.sh .root; do
|
for i in _reformat-common.bash do-reformat.sh would-reformat.sh .root; do
|
||||||
if [[ -f "$here"/bin/"$i" ]] ; then
|
if [[ -f "$here"/bin/"$i" ]] ; then
|
||||||
dest=$(readlink bin/"$i")
|
dest=$(readlink bin/"$i")
|
||||||
if [[ "$dest" == "$DIR/$i" ]] ; then
|
if [[ "$dest" == "$DIR/$i" ]]; then
|
||||||
echo "$i" is in place, good
|
echo "$i" is in place, good
|
||||||
else
|
else
|
||||||
echo "$i" exists but it is not a symlink or does not point to the right place
|
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
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ -f $here/.dir-locals.el ]] ; then
|
if [[ -f $here/.dir-locals.el ]]; then
|
||||||
dest=$(readlink .dir-locals.el)
|
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
|
echo .dir-locals.el is in place, good
|
||||||
else
|
else
|
||||||
echo .dir-locals.el exists but it is not a symlink or does not point to
|
echo .dir-locals.el exists but it is not a symlink or does not point to
|
||||||
|
|||||||
Reference in New Issue
Block a user