added option to auto Download dialog package and updated zp-install.run

This commit is contained in:
Raum0x2A
2025-12-05 13:27:38 -07:00
parent 3535e37fe0
commit fbfbc3d845
3 changed files with 138 additions and 1291 deletions

View File

@@ -61,6 +61,6 @@ $> chmod 755 zp-install.txt
$> ./zp-install.txt
```
`zp-install.run` was generated with `$> makeself --sha256 --tar-extra "--exclude=.git" ./ zp-install.run "ZPower Shell Pack Installer" ./install.sh`
`zp-install.run` was generated with `$> makeself --sha256 ./files zp-install.run "Zpower Installer" ./install.sh`
MakeSelf: A self-extracting archiving tool for Unix systems, in 100% shell script - [GitHub](https://github.com/megastep/makeself) / [Website](https://makeself.io/)

View File

@@ -1,7 +1,14 @@
#!/bin/bash
if ! hash dialog 2>/dev/null; then
echo "dialog is not installed"
exit
while true; do
read -p "install from apt? (y/n) " yn
case $yn in
[Yy]* ) sudo apt install dialog || echo "dialog install failed"; break;;
[Nn]* ) echo "exiting zpower installer"; exit;;
* ) echo "please answer Y/n only.";;
esac
done
fi
working() {
@@ -48,11 +55,11 @@ do
esac
done
# Update/upgrade ubuntu repos
echo "Updating Ubuntu repos..."
# Update/upgrade repos
echo "Updating repos..."
sudo apt -qq update -y && sudo apt -qq upgrade -y || echo "apt update failed"
# Install packages from Ubuntu repos
# Install packages from repos
if [ $zse -eq 1 ]; then
sudo apt -qq install -y curl git zsh tmux powerline || echo "apt install failed"
else

File diff suppressed because it is too large Load Diff