File tree 1 file changed +11
-11
lines changed
1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 8
8
INSTALL_DIR=" /usr/local/bin"
9
9
NO_RELEASE_ASSET=" "
10
10
11
+ # Calculate checksum. We use this function because Linux and macOS have different commands
12
+ calculate_checksum () {
13
+ if [ " $OS_NAME " = " Darwin" ]; then
14
+ # macOS
15
+ shasum -a 256 " $1 " | cut -d ' ' -f 1
16
+ else
17
+ # Linux and others
18
+ sha256sum " $1 " | cut -d ' ' -f 1
19
+ fi
20
+ }
21
+
11
22
echo " Installing envfetch to $INSTALL_DIR "
12
23
echo " This script will activate sudo to install to $INSTALL_DIR "
13
24
sudo echo " Sudo activated"
63
74
sudo chmod +x " $INSTALL_DIR /envfetch"
64
75
65
76
echo " Successfully installed envfetch"
66
-
67
- # Calculate checksum. We use this function because Linux and macOS have different commands
68
- calculate_checksum () {
69
- if [ " $OS_NAME " = " Darwin" ]; then
70
- # macOS
71
- shasum -a 256 " $1 " | cut -d ' ' -f 1
72
- else
73
- # Linux and others
74
- sha256sum " $1 " | cut -d ' ' -f 1
75
- fi
76
- }
You can’t perform that action at this time.
0 commit comments