chore: add fs related helpers that allow to cat files from either a remote repo, including a different branch than main, or from a local folder, so we contributors can change their changes locally

This commit is contained in:
José Moreira 2024-09-05 21:16:13 +01:00
parent 4cddfa3b12
commit 1fdac65f7d
170 changed files with 864 additions and 652 deletions

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func)
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/fs.func)
source <(fs_cat misc/build.func)
# Copyright (c) 2021-2024 tteck
# Author: tteck
# Co-Author: MickLesk (Canbiz)
@ -9,12 +10,12 @@ source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build
function header_info {
clear
cat <<"EOF"
_____ __
/ ___/____ ____ ____ / /___ ___ ____ _____
_____ __
/ ___/____ ____ ____ / /___ ___ ____ _____
\__ \/ __ \/ __ \/ __ \/ / __ `__ \/ __ `/ __ \
___/ / /_/ / /_/ / /_/ / / / / / / / /_/ / / / /
/____/ .___/\____/\____/_/_/ /_/ /_/\__,_/_/ /_/
/_/
/____/ .___/\____/\____/_/_/ /_/ /_/\__,_/_/ /_/
/_/
EOF
}
header_info
@ -71,8 +72,8 @@ if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_v
cd /opt
rm -rf spoolman_bak
mv spoolman spoolman_bak
wget -q https://github.com/Donkie/Spoolman/releases/download/${RELEASE}/spoolman.zip
unzip -q spoolman.zip -d spoolman
wget -q https://github.com/Donkie/Spoolman/releases/download/${RELEASE}/spoolman.zip
unzip -q spoolman.zip -d spoolman
cd spoolman
pip3 install -r requirements.txt >/dev/null 2>&1
cp .env.example .env