mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
refactor: Use command grouping rather than subshell
As recommended by ShellCheck.
This commit is contained in:
1 parent
148ac4c261
commit
077ff277da
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user