From 077ff277dad353210992e916ff1facca09aeef59 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Tue, 10 Jan 2023 17:02:11 +1300 Subject: [PATCH] refactor: Use command grouping rather than subshell As recommended by ShellCheck. --- disko | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disko b/disko index f361ebb..10e2fc2 100755 --- a/disko +++ b/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