This repository was archived by the owner on Nov 23, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-20
lines changed Expand file tree Collapse file tree 1 file changed +11
-20
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
3
# Find the latest release url and filename (just like in the other scripts)
4
- url=" $( curl -s ' https://api.github.com/repos/Frogging-Family/wine-tkg-git/releases/latest' | grep ' browser_download_url' | grep ' staging' | cut -d \" -f 4) "
5
- filename=" $( echo ' $url' | sed ' s|.*/||' ) "
6
-
7
- # Optionally download the package/do not directly install from remote
8
- # (not needed when directly installing using pacman)
9
- # curl -LOJ "$url"
4
+ url=" $( curl -s " https://api.github.com/repos/Frogging-Family/wine-tkg-git/releases/latest" | grep " browser_download_url" | grep " staging" | cut -d \" -f 4) "
10
5
11
6
# Download the latest version and install it using pacman
12
7
echo " --> Downloading and installing the latest wine-tkg..."
13
8
14
9
if [ " $( id -u) " = " 0" ]; then
15
- echo " --> Installing as root..."
16
- echo -e " \e[90m "
17
- pacman --needed -U " $url "
18
- echo -e " \e[0m "
19
- elif [ $( which sudo) ]; then
20
- echo " --> Not running as root. Trying to elevate through sudo..."
21
- echo -e " \e[90m "
22
- sudo pacman --needed -U " $url "
23
- echo -e " \e[0m "
10
+ echo " --> Installing as root..."
11
+ echo
12
+ pacman --needed -U " $url "
13
+ echo
14
+ elif [ " $( which sudo) " ]; then
15
+ echo " --> Not running as root. Trying to elevate through sudo..."
16
+ echo
17
+ sudo pacman --needed -U " $url "
18
+ echo
24
19
else
25
- echo " --> Error: Please run the script with root privileges."
20
+ echo " --> Error: Please run the script with root privileges."
26
21
fi
27
-
28
- # Cleanup (not needed when directly installing using pacman)
29
- # echo "--> Cleaning up..."
30
- # rm "$filename"
You can’t perform that action at this time.
0 commit comments