mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-22 11:13:26 +00:00
fix: Replace backticks with single quotes in jq warning
This commit is contained in:
@@ -109,8 +109,8 @@ gather_lxc_config() {
|
||||
done < <(pvesh get /storage --output-format json | jq -r '.[] | [.storage, .content] | @tsv')
|
||||
else
|
||||
# Fallback without jq (less robust, might fail on complex setups)
|
||||
print_warning "'jq' command not found. Storage detection might be less reliable."
|
||||
print_warning "Please install jq (`apt update && apt install jq`) for the best experience."
|
||||
print_warning "\'jq\' command not found. Storage detection might be less reliable."
|
||||
print_warning "Please install jq ('apt update && apt install jq') for the best experience."
|
||||
# Basic grep/awk approach - less accurate for template support
|
||||
local disk_storage
|
||||
disk_storage=$(pvesh get /storage --output-format json | grep -B 1 -E '(\"content\":.*\"rootdir\"|\"content\":.*\"images\")\' | grep \'\"storage\":\' | awk -F\'\"\' '{print $4}')
|
||||
|
||||
Reference in New Issue
Block a user