standardize script beginning
parent
e69f8910a7
commit
dc3329b952
@ -1,15 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
|
||||||
|
|
||||||
function error {
|
function error {
|
||||||
echo -e "\e[31m$1\e[39m"
|
echo -e "\\e[91m$1\\e[39m"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Get dependencies
|
|
||||||
DIRECTORY="$(dirname "$(dirname "$(dirname "$0")")")"
|
|
||||||
|
|
||||||
rm -f ./balena-etcher-electron_1.5.63_Raspbian_Buster_armhf.deb
|
rm -f ./balena-etcher-electron_1.5.63_Raspbian_Buster_armhf.deb
|
||||||
|
# Get dependencies
|
||||||
wget https://github.com/futurejones/balena-etcher-arm/releases/download/v1.5.63/balena-etcher-electron_1.5.63_Raspbian_Buster_armhf.deb
|
wget https://github.com/futurejones/balena-etcher-arm/releases/download/v1.5.63/balena-etcher-electron_1.5.63_Raspbian_Buster_armhf.deb
|
||||||
|
|
||||||
sudo apt install -y ./balena-etcher-electron_1.5.63_Raspbian_Buster_armhf.deb || error "failed to install deb file!"
|
sudo apt install -y ./balena-etcher-electron_1.5.63_Raspbian_Buster_armhf.deb || error "failed to install deb file!"
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
|
||||||
|
|
||||||
function error {
|
function error {
|
||||||
echo -e "\e[31m$1\e[39m"
|
echo -e "\\e[91m$1\\e[39m"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
DIRECTORY="$(dirname "$(dirname "$(dirname "$0")")")"
|
|
||||||
|
|
||||||
sudo apt purge -y balena-etcher-electron || error "failed to purge the deb file!"
|
sudo apt purge -y balena-etcher-electron || error "failed to purge the deb file!"
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
|
||||||
|
|
||||||
function error {
|
function error {
|
||||||
echo -e "\e[31m$1\e[39m"
|
echo -e "\\e[91m$1\\e[39m"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
DIRECTORY="$(dirname "$(dirname "$(dirname "$0")")")"
|
|
||||||
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1
|
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1
|
||||||
|
|
||||||
rm -rf ~/CommanderPi || error "failed to remove commanderpi folder!"
|
rm -rf ~/CommanderPi || error "failed to remove commanderpi folder!"
|
||||||
|
@ -1,10 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
|
||||||
|
|
||||||
|
function error {
|
||||||
|
echo -e "\\e[91m$1\\e[39m"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
rm -rf ~/.cache/cool-retro-term
|
rm -rf ~/.cache/cool-retro-term
|
||||||
rm -rf ~/cool-retro-term
|
rm -rf ~/cool-retro-term
|
||||||
rm -f ~/.local/share/applications/crt.desktop
|
rm -f ~/.local/share/applications/crt.desktop
|
||||||
|
|
||||||
DIRECTORY="$(dirname "$(dirname "$(dirname "$0")")")"
|
|
||||||
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1
|
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1
|
||||||
|
|
||||||
rm -rf ~/.local/share/cool-retro-term ~/cool-retro-term
|
rm -rf ~/.local/share/cool-retro-term ~/cool-retro-term
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
|
||||||
|
|
||||||
function error {
|
function error {
|
||||||
echo -e "\e[31m$1\e[39m"
|
echo -e "\\e[91m$1\\e[39m"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Get dependencies
|
# Get dependencies
|
||||||
DIRECTORY="$(dirname "$(dirname "$(dirname "$0")")")"
|
|
||||||
"${DIRECTORY}/pkg-install" "yad systemd-container xserver-xephyr expect" "$(dirname "$0")" || exit 1
|
"${DIRECTORY}/pkg-install" "yad systemd-container xserver-xephyr expect" "$(dirname "$0")" || exit 1
|
||||||
|
|
||||||
wget -O - https://raw.githubusercontent.com/Botspot/Pi-Power-Tools/master/update | bash
|
wget -O - https://raw.githubusercontent.com/Botspot/Pi-Power-Tools/master/update | bash
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
|
||||||
|
|
||||||
function error {
|
function error {
|
||||||
echo -e "\e[31m$1\e[39m"
|
echo -e "\\e[91m$1\\e[39m"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
DIRECTORY="$(dirname "$(dirname "$(dirname "$0")")")"
|
|
||||||
|
|
||||||
~/Windows-10/uninstall | error "failed to uninstall!"
|
~/Windows-10/uninstall | error "failed to uninstall!"
|
||||||
rm -rf ~/Windows-10
|
rm -rf ~/Windows-10
|
||||||
|
Loading…
Reference in New Issue