fix: remove double square brackets

This commit is contained in:
Ludovic Ortega committed 2024-11-12 22:10:34 +01:00
1 parent 08807b498e
commit 1bfd4672e1
1 file changed
+1 -1
+1 -1
View File
@@ -67,7 +67,7 @@ truenas_deploy() {
_info "Getting TrueNAS version" _info "Getting TrueNAS version"
_response=$(_get "$_api_url/system/version") _response=$(_get "$_api_url/system/version")
if [[ "$_response" = *"SCALE"* ]]; then if echo "$_response" | grep -q "SCALE"; then
_truenas_os=$(echo "$_response" | cut -d '-' -f 2) _truenas_os=$(echo "$_response" | cut -d '-' -f 2)
_truenas_version=$(echo "$_response" | cut -d '-' -f 3 | tr -d '"' | cut -d '.' -f 1,2) _truenas_version=$(echo "$_response" | cut -d '-' -f 3 | tr -d '"' | cut -d '.' -f 1,2)
else else
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.