added option to auto Download dialog package and updated zp-install.run
This commit is contained in:
@@ -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/)
|
||||
|
||||
|
||||
15
install.sh
15
install.sh
@@ -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
|
||||
|
||||
1412
zp-install.run
1412
zp-install.run
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user