mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
Add files via upload
This commit is contained in:
parent
7f92a4dc91
commit
c3693e947b
@ -10,9 +10,10 @@ function failexit () {
|
|||||||
exit $1
|
exit $1
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$1" = "s" ]; then
|
if [ "$1" = "s" ] || [ "$1" = "" ]; then
|
||||||
# select ; REF: https://www.baeldung.com/linux/reading-output-into-array
|
# select ; REF: https://www.baeldung.com/linux/reading-output-into-array
|
||||||
[ $(zpool list) = "no pools available" ] && failexit 404 "No zfs pools"
|
tmptest=$(zpool list |head -n 1)
|
||||||
|
[ $"tmptest" = "no pools available" ] && failexit 404 "No zfs pools"
|
||||||
|
|
||||||
OIFS=$IFS
|
OIFS=$IFS
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user