#!/bin/bash

# Usage:
# bash <(curl -s https://scripts.justman10000.de/assets/scripts/scripts.sh)

[[ -n $1 ]] && wget https://scripts.justman10000.de/scripts/$1 -O /usr/bin/$1 && exit

wget https://github.com/MythicalLTD/FeatherPanel/raw/refs/heads/main/count.js -O /usr/bin/count
chmod +x /usr/bin/count

wget https://scripts.justman10000.de/scripts/bci -O /usr/bin/bci
wget https://scripts.justman10000.de/scripts/cmu -O /usr/bin/cmu
wget https://scripts.justman10000.de/scripts/com -O /usr/bin/com
wget https://scripts.justman10000.de/scripts/crd -O /usr/bin/crd
wget https://scripts.justman10000.de/scripts/crit -O /usr/bin/crit
wget https://scripts.justman10000.de/scripts/cru -O /usr/bin/cru
wget https://scripts.justman10000.de/scripts/filpck -O /usr/bin/filpck
wget https://scripts.justman10000.de/scripts/gcsr -O /usr/bin/gcsr
wget https://scripts.justman10000.de/scripts/gdu -O /usr/bin/gdu
wget https://scripts.justman10000.de/scripts/gencrt -O /usr/bin/gencrt
wget https://scripts.justman10000.de/scripts/getComposerSuggests -O /usr/bin/getComposerSuggests
wget https://scripts.justman10000.de/scripts/getdb -O /usr/bin/getdb
wget https://scripts.justman10000.de/scripts/getusr -O /usr/bin/getusr
wget https://scripts.justman10000.de/scripts/getvsix -O /usr/bin/getvsix
wget https://scripts.justman10000.de/scripts/gip -O /usr/bin/gip
wget https://scripts.justman10000.de/scripts/gmp -O /usr/bin/gmp
wget https://scripts.justman10000.de/scripts/grs -O /usr/bin/grs
wget https://scripts.justman10000.de/scripts/ipk -O /usr/bin/ipk
wget https://scripts.justman10000.de/scripts/isoToDocker -O /usr/bin/isoToDocker
wget https://scripts.justman10000.de/scripts/maca -O /usr/bin/maca
wget https://scripts.justman10000.de/scripts/mas -O /usr/bin/mas
wget https://scripts.justman10000.de/scripts/msd -O /usr/bin/msd
wget https://scripts.justman10000.de/scripts/opensslrc -O /usr/bin/opensslrc
wget https://scripts.justman10000.de/scripts/ruf -O /usr/bin/ruf
wget https://scripts.justman10000.de/scripts/setp -O /usr/bin/setp

chmod +x /usr/bin/bci
chmod +x /usr/bin/cmu
chmod +x /usr/bin/com
chmod +x /usr/bin/crd
chmod +x /usr/bin/crit
chmod +x /usr/bin/cru
chmod +x /usr/bin/filpck
chmod +x /usr/bin/gcsr
chmod +x /usr/bin/gdu
chmod +x /usr/bin/gencrt
chmod +x /usr/bin/getComposerSuggests
chmod +x /usr/bin/getdb
chmod +x /usr/bin/getusr
chmod +x /usr/bin/getvsix
chmod +x /usr/bin/gip
chmod +x /usr/bin/gmp
chmod +x /usr/bin/grs
chmod +x /usr/bin/ipk
chmod +x /usr/bin/isoToDocker
chmod +x /usr/bin/maca
chmod +x /usr/bin/mas
chmod +x /usr/bin/msd
chmod +x /usr/bin/opensslrc
chmod +x /usr/bin/ruf
chmod +x /usr/bin/setp
