2
0
mirror of https://github.com/spritsail/plex-media-server.git synced 2025-07-01 14:00:57 +00:00

Build multiarch amd64/arm64 Plex images

Signed-off-by: Adam Dodman <adam@adam-ant.co.uk>
Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
2022-06-19 16:03:35 +01:00
parent d34d9d2fcc
commit 4579290641
6 changed files with 152 additions and 76 deletions

View File

@ -6,7 +6,7 @@ getPref() {
}
setPref() {
count="$(xmlstarlet sel -t -v "count(/Preferences/@$1)" "${PREF_FILE}")"
if [ $(($count + 0)) -gt 0 ]; then
if [ $((count + 0)) -gt 0 ]; then
xmlstarlet ed --inplace --update "/Preferences/@$1" -v "$2" "${PREF_FILE}" 2>/dev/null
else
xmlstarlet ed --inplace --insert "/Preferences" --type attr -n "$1" -v "$2" "${PREF_FILE}" 2>/dev/null