mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 11:07:44 +00:00
Scripts: Use [[ for booleans, always
This commit is contained in:
parent
d69bb502f1
commit
aa93b53caf
1 changed files with 2 additions and 2 deletions
|
@ -1,13 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
|
||||
if [[ "$1" = "--help" ]] || [[ "$1" = "-h" ]]; then
|
||||
echo "Usage: rebuild.sh [-h | --help] [-c | --clean-garbage] [machine]"
|
||||
exit
|
||||
fi
|
||||
|
||||
sudo true
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
if [[ -n "$1" ]]; then
|
||||
machine = $1
|
||||
else
|
||||
read -p "What machine would you want to build? [$(ls --format=commas machines)]: " machine
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue