From 68bfc8200ecef06a49a9275340025ee57f3dc7ab Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Thu, 4 Jan 2024 05:24:03 +0000 Subject: [PATCH] Latest --- software.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/software.yml b/software.yml index 49f3254b..afc13796 100644 --- a/software.yml +++ b/software.yml @@ -3201,7 +3201,7 @@ softwarePackages: sudo mkdir -p /usr/local/etc/branding sudo cp -f "$HOME/.local/etc/branding/logo-color-256x256.png" /usr/local/etc/branding/logo-color-256x256.png sudo mkdir -p /usr/local/share/sounds - rsync -rtvp "${XDG_DATA_HOME:-$HOME/.local/share}/sounds/"* /usr/local/share/sounds + sudo rsync -rtvp "${XDG_DATA_HOME:-$HOME/.local/share}/sounds/" /usr/local/share/sounds if command -v apt-get > /dev/null; then sudo apt install python-dbus fi @@ -12754,7 +12754,15 @@ softwarePackages: logg info "The GitHub Actions runner installation is not present at $GH_RUNNER_PATH" fi script: | - RELEASES="$(curl -sSL --compressed --header "Authorization: Bearer $GITHUB_TOKEN" "https://api.github.com/repos/actions/runner/releases/latest")" + #!/usr/bin/env bash + if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/private.sh" ]; then + source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/private.sh" + fi + if [ -n "$GITHUB_TOKEN" ]; then + RELEASES="$(curl -sSL --compressed --header "Authorization: Bearer $GITHUB_TOKEN" "https://api.github.com/repos/actions/runner/releases/latest")" + else + RELEASES="$(curl -sSL --compressed "https://api.github.com/repos/actions/runner/releases/latest")" + fi LATEST_VERSION="$(echo "$RELEASES" | grep -o '"tag_name": "[^"]*' | grep -o '[^"]*$')" ARCHITECTURE="$(uname -m | sed 's/86_//' | sed 's/v7l//')" OS_FAMILY="$(test -d /Applications && echo osx || echo linux)"