mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-11 23:50:05 +01:00
refactor: Use command grouping rather than subshell
As recommended by ShellCheck.
This commit is contained in:
parent
148ac4c261
commit
077ff277da
1 changed files with 1 additions and 1 deletions
2
disko
2
disko
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue