forked from thisiszeev/wine-installer
Changes to be committed:
modified: README.md modified: wine-installer-ubuntu.sh new file: wine-script-updater.sh
This commit is contained in:
parent
e360e87fa1
commit
e24f707204
|
@ -14,4 +14,3 @@ wget https://raw.githubusercontent.com/RishonDev/get-wine-latest.sh/main/wine-in
|
|||
chmod +x wine-installer-ubuntu.sh
|
||||
./wine-installer-ubuntu.sh
|
||||
```
|
||||
|
||||
|
|
|
@ -1,4 +1,16 @@
|
|||
#!/bin/bash
|
||||
while getopts ":v:" opt; do
|
||||
case $opt in
|
||||
v)
|
||||
echo "2.1.0"
|
||||
;;
|
||||
\?)
|
||||
echo "Invalid option: -$OPTARG" >&2
|
||||
echo "-v Displays the version"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
RELEASE=$(lsb_release -sr)
|
||||
spin()
|
||||
|
@ -60,6 +72,7 @@ kill -9 $SPIN_PID
|
|||
read -p "Install wine? [Y/n]: " -n 1 -r
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]
|
||||
then
|
||||
echo
|
||||
spin &
|
||||
SPIN_PID=$!
|
||||
trap "kill -9 $SPIN_PID" `seq 0 15`
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
spin()
|
||||
{
|
||||
spinner="/|\\-/|\\-"
|
||||
while :
|
||||
do
|
||||
for i in `seq 0 7`
|
||||
do
|
||||
echo -n "${spinner:$i:1}"
|
||||
echo -en "\010"
|
||||
sleep 0.1
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
echo "Updating script..."
|
||||
spin &
|
||||
SPIN_PID=$!
|
||||
trap "kill -9 $SPIN_PID" `seq 0 15`
|
||||
wget https://raw.githubusercontent.com/RishonDev/get-wine-latest.sh/v2.1.0/wine-installer-ubuntu.sh -O ./wine-installer-ubuntu.sh
|
||||
kill -9 $SPIN_PID
|
||||
echo "Done."
|
Loading…
Reference in New Issue