mirror of
https://github.com/nix-community/disko.git
synced 2024-09-11 06:25:33 +03:00
refactor: Use command grouping rather than subshell
As recommended by ShellCheck.
This commit is contained in:
parent
148ac4c261
commit
077ff277da
2
disko
2
disko
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user