#!/bin/bash url=https://raw.githubusercontent.com/GitPack/GitPack/master/gpack.zip #Pull the script from the main repo into a temp file tempfile=$(mktemp /tmp/gpack_XXXXX.zip) if curl --output /dev/null --silent --head --fail "$url" then echo "Downloading latest gpack from $url" else echo "Error URL $url Does Not Exist or is not reachable" fi wget -O $tempfile $url &> /dev/null if [ ! -e $tempfile ]; then echo "Error, unable to create $tempfile. Check that you can write to this path or that the $url exists" else python3 $tempfile "$@" rm $tempfile fi