Skip to content

Commit

Permalink
tree: address latest ShellCheck errors
Browse files Browse the repository at this point in the history
We're now using ShellCheck from f38 which detected new issues.
  • Loading branch information
jlebon authored and dustymabe committed Apr 19, 2023
1 parent 8961862 commit 3c8651c
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/cmd-build
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ while true; do
;;
-*)
fatal "$0: unrecognized option: $1"
exit 1
;;
*)
break
Expand Down
1 change: 0 additions & 1 deletion src/cmd-build-fast
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ while true; do
;;
-*)
fatal "$0: unrecognized option: $1"
exit 1
;;
*)
break
Expand Down
1 change: 0 additions & 1 deletion src/cmd-buildextend-metal
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ while true; do
;;
-*)
fatal "$0: unrecognized option: $1"
exit 1
;;
*)
break
Expand Down
2 changes: 0 additions & 2 deletions src/cmd-fetch
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ while true; do
;;
*)
fatal "$0: unrecognized option: $1"
exit 1
;;
esac
shift
Expand All @@ -95,7 +94,6 @@ done
if [ $# -ne 0 ]; then
print_help
fatal "ERROR: Too many arguments"
exit 1
fi

prepare_build
Expand Down
2 changes: 0 additions & 2 deletions src/cmd-init
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ while true; do
*)
print_help
fatal "init: unrecognized option: $1"
exit 1
;;
esac
shift
Expand All @@ -135,7 +134,6 @@ done
if [ $# -ne 1 ]; then
print_help
fatal "ERROR: Missing GITCONFIG"
exit 1
fi

# If the current working dir is not empty then error out
Expand Down
1 change: 0 additions & 1 deletion src/cmd-offline-update
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ while true; do
;;
-*)
fatal "$0: unrecognized option: $1"
exit 1
;;
*)
break
Expand Down
6 changes: 3 additions & 3 deletions src/create_disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,9 @@ chattr +i $rootfs
fstrim -a -v
# Ensure the filesystem journals are flushed
for fs in $rootfs/boot $rootfs; do
mount -o remount,ro $fs
xfs_freeze -f $fs
xfs_freeze -u $fs
mount -o remount,ro "$fs"
xfs_freeze -f "$fs"
xfs_freeze -u "$fs"
done

umount -R $rootfs
Expand Down

0 comments on commit 3c8651c

Please sign in to comment.