refactor: Use command grouping rather than subshell

As recommended by ShellCheck.
This commit is contained in:
Victor Engmark 2023-01-10 17:02:11 +13:00
parent 148ac4c261
commit 077ff277da

2
disko
View File

@ -87,7 +87,7 @@ while [[ $# -gt 0 ]]; do
shift
done
if ! ([[ $mode = "create" ]] || [[ $mode = "mount" ]] || [[ $mode = "zap_create_mount" ]]); then
if ! { [[ $mode = "create" ]] || [[ $mode = "mount" ]] || [[ $mode = "zap_create_mount" ]]; }; then
abort "mode must be either create, mount or zap_create_mount"
fi