set up shfmt

This commit is contained in:
ryleu
2026-04-10 19:53:49 -05:00
parent 760f6ddd19
commit 358380c23c
6 changed files with 275 additions and 277 deletions

View File

@@ -3,8 +3,8 @@
repo_root="$(git rev-parse --show-toplevel)"
if [[ -z $repo_root ]]; then
echo "script must be run from within the rover-ros2 repo" >&2
exit 1
echo "script must be run from within the rover-ros2 repo" >&2
exit 1
fi
cd $repo_root
@@ -12,9 +12,9 @@ cd $repo_root
echo "this will nuke all of your current un-commited git changes, including any changes to submodules and any gitignored files. is this okay? (y/N)"
read okay
if [[ ! "$okay" = "y" ]]; then
echo "you didn't say exactly 'y'. aborting." >&2
exit 2
if [[ ! $okay == "y" ]]; then
echo "you didn't say exactly 'y'. aborting." >&2
exit 2
fi
echo
@@ -30,9 +30,8 @@ echo "in theory that should've done it. let's make sure"
status=$(git status --porcelain)
echo $status
if [[ -z $status ]]; then
echo "nice, all clean!"
echo "nice, all clean!"
else
echo "uhh that's not supposed to be there. this is probably a bug in this script. good luck!" >&2
exit 3
echo "uhh that's not supposed to be there. this is probably a bug in this script. good luck!" >&2
exit 3
fi