mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 05:53: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
|
shift
|
||||||
done
|
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"
|
abort "mode must be either create, mount or zap_create_mount"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user