#!/bin/bash

# Tonton Jo - 2022
# Join me on Youtube: https://www.youtube.com/c/tontonjo

# Version:
# 1.0: Initial file version
# 1.1: add echo to inform in case execution get stuck
# 1.2: force to read whole script in case it get overwritten by an update

# file is intended to be in /usr/bin/proxmox-update
# This command retreive the latest version of proxmox-toolbox and execute it with update argument

proxmox-update() {
echo "- Retreiving ressources"
wget -qO - https://raw.githubusercontent.com/Tontonjo/proxmox_toolbox/main/proxmox_toolbox.sh | bash /dev/stdin -u
}
proxmox-update "$@"; exit
