5 Commit-ok

Szerző SHA1 Üzenet Dátum
4ac4bc09ad 1.5.3 release 2025-04-22 16:43:17 -04:00
fa86b8b659 Use manual debug output for download() 2025-04-22 16:42:28 -04:00
e211ad5c5d Print advice last 2025-04-22 16:39:03 -04:00
60ade196c5 Remove JRiver GPG key in uninstall() 2025-04-22 16:36:03 -04:00
347dcd44ae Add more download debug output 2025-04-22 16:30:21 -04:00

Fájl megtekintése

@@ -18,7 +18,7 @@
# * Be careful with tabs in heredocs # * Be careful with tabs in heredocs
shopt -s extglob shopt -s extglob
declare -g SCRIPT_VERSION="1.5.2" declare -g SCRIPT_VERSION="1.5.3"
declare -g MC_REPO="bullseye" # should match the MC_VERSION declare -g MC_REPO="bullseye" # should match the MC_VERSION
# declare -g MC_REPO="bookworm" # should match the MC_VERSION # declare -g MC_REPO="bookworm" # should match the MC_VERSION
declare -g MC_VERSION="33.0.72" # do find all replace declare -g MC_VERSION="33.0.72" # do find all replace
@@ -1569,13 +1569,16 @@ uninstall() {
echo "Uninstalling JRiver Media Center package" echo "Uninstalling JRiver Media Center package"
if "${PKG_REMOVE[@]}" "${MC_PKG%%=*}"; then # remove version specifier if "${PKG_REMOVE[@]}" "${MC_PKG%%=*}"; then # remove version specifier
echo "JRiver Media Center has been completely uninstalled" echo "JRiver Media Center has been completely uninstalled"
echo "To remove your MC library: rm -rf $HOME/.jriver"
elif [[ $? -eq 100 ]]; then elif [[ $? -eq 100 ]]; then
err "JRiver Media Center package '${MC_PKG%%=*}' is not present and was not uninstalled" err "JRiver Media Center package '${MC_PKG%%=*}' is not present and was not uninstalled"
else else
err "Could not remove Media Center package" err "Could not remove Media Center package"
fi fi
echo "Uninstalling JRiver Media Center GPG key"
local keyfile="/usr/share/keyrings/jriver-com-archive-keyring.gpg"
[[ -f $keyfile ]] && execute sudo rm -f "$keyfile"
if [[ -f $SCRIPT_DIR/.uninstall ]]; then if [[ -f $SCRIPT_DIR/.uninstall ]]; then
echo "Removing files from .uninstall log" echo "Removing files from .uninstall log"
while read -r p; do while read -r p; do
@@ -1584,6 +1587,7 @@ uninstall() {
mv "$SCRIPT_DIR/.uninstall" "$SCRIPT_DIR/.uninstall.bk" mv "$SCRIPT_DIR/.uninstall" "$SCRIPT_DIR/.uninstall.bk"
fi fi
echo "To remove your MC library: rm -rf $HOME/.jriver"
return 0 return 0
} }
@@ -1775,6 +1779,7 @@ execute() {
fi fi
} }
download() { download() {
debug "Running: ${FUNCNAME[0]} $*"
local url="$1" local url="$1"
local output="${2:-}" local output="${2:-}"
local -a cmd local -a cmd
@@ -1788,13 +1793,14 @@ download() {
fi fi
elif command -v wget &>/dev/null || install_package --silent wget; then elif command -v wget &>/dev/null || install_package --silent wget; then
cmd=(wget --quiet) cmd=(wget --quiet)
[[ -n "$output" ]] && cmd+=(--output-document="$output") [[ -n "$output" ]] && cmd+=("--output-document=$output")
else else
err "Unable to install wget or curl" err "Unable to install wget or curl"
return 1 return 1
fi fi
execute "${cmd[@]}" "$url" debug "${cmd[@]}" "$url"
"${cmd[@]}" "$url"
} }
# Roughly turn debugging on for pre-init # Roughly turn debugging on for pre-init