CommanderPi: if pi fails, try sudo to remove folder before cloning

pull/899/head
Botspot 4 years ago
parent c7999a87e0
commit edf94ac144

@ -7,10 +7,11 @@ function error {
exit 1 exit 1
} }
rm -rf ~/CommanderPi || sudo rm -rf ~/CommanderPi || error "Failed to remove CommanderPi folder!"
# Get dependencies # Get dependencies
"${DIRECTORY}/pkg-install" "python3-tk python3-pil python3-pil.imagetk" "$(dirname "$0")" || exit 1 "${DIRECTORY}/pkg-install" "python3-tk python3-pil python3-pil.imagetk" "$(dirname "$0")" || exit 1
rm -rf ~/CommanderPi
git clone https://github.com/Jack477/CommanderPi || error "failed to download repository!" git clone https://github.com/Jack477/CommanderPi || error "failed to download repository!"
cd CommanderPi || error "failed to enter repository!" cd CommanderPi || error "failed to enter repository!"
chmod +x install.sh || error "failed to mark install.sh as executable!" chmod +x install.sh || error "failed to mark install.sh as executable!"

Loading…
Cancel
Save