mirror of
https://github.com/SHC-ASTRA/rover-ros2.git
synced 2026-04-20 11:51:16 -05:00
set up shfmt
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user