setup-solus.sh: sudo-keepalive

This commit is contained in:
zotan 2018-02-01 20:54:36 +01:00
parent 40ae4500de
commit c65abc5c14

View file

@ -1,6 +1,11 @@
#!/bin/bash
cd
sudo -v
#sudo-keepalive
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
sudo eopkg up -y
sudo snap install spotify
@ -63,3 +68,6 @@ if [[ $? -ne 0 ]]; then
echo "alias gpl='git pull'" >> .zshrc
echo "alias grm='git rm'" >> .zshrc
fi
#end sudo-keepalive
kill $(jobs -p)