TyOS-Local-Scripts/update_scriptbase

10 lines
No EOL
357 B
Bash

#!/usr/bin/env bash
echo "> Moving to /usr/local/bin"
cd /usr/local/bin
echo "> Pulling Changes from 'https://git.tyleo.dev/TyleoDvDelaware3217/TyOS-Local-Scripts' repos"
sudo git reset --hard HEAD
sudo git clean -f -d
sudo git pull
echo "> Applying Execution Autorisation to *_*"
sudo find /usr/local/bin/. -type f -name "[a-z]*" -exec sudo chmod +x {} \;