Commit e2e2c8d 1 parent 82dcc3f commit e2e2c8d Copy full SHA for e2e2c8d
File tree 2 files changed +11
-7
lines changed
2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -151,18 +151,18 @@ scoop reset deno
151
151
152
152
## Known Issues
153
153
154
- ### unzip is required
154
+ ### either unzip or 7z is required
155
155
156
- The program [ ` unzip ` ] ( https://linux.die.net/man/1/unzip ) is a requirement for the Shell installer.
156
+ The program [ ` unzip ` ] ( https://linux.die.net/man/1/unzip ) or [ ` 7z ` ] ( https://linux.die.net/man/1/7z ) is a requirement for the Shell installer.
157
157
158
158
``` sh
159
159
$ curl -fsSL https://deno.land/install.sh | sh
160
- Error: unzip is required to install Deno (see: https://github.com/denoland/deno_install#unzip-is-required).
160
+ Error: either unzip or 7z is required to install Deno (see: https://github.com/denoland/deno_install#either- unzip-or-7z- is-required ).
161
161
```
162
162
163
163
** When does this issue occur?**
164
164
165
- During the ` install.sh ` process, ` unzip ` is used to extract the zip archive.
165
+ During the ` install.sh ` process, ` unzip ` or ` 7z ` is used to extract the zip archive.
166
166
167
167
** How can this issue be fixed?**
168
168
Original file line number Diff line number Diff line change 4
4
5
5
set -e
6
6
7
- if ! command -v unzip > /dev/null; then
8
- echo " Error: unzip is required to install Deno (see: https://github.com/denoland/deno_install#unzip-is-required )." 1>&2
7
+ if ! command -v unzip > /dev/null && ! command -v 7z > /dev/null ; then
8
+ echo " Error: either unzip or 7z is required to install Deno (see: https://github.com/denoland/deno_install#either- unzip-or-7z -is-required )." 1>&2
9
9
exit 1
10
10
fi
11
11
@@ -38,7 +38,11 @@ if [ ! -d "$bin_dir" ]; then
38
38
fi
39
39
40
40
curl --fail --location --progress-bar --output " $exe .zip" " $deno_uri "
41
- unzip -d " $bin_dir " -o " $exe .zip"
41
+ if command -v 7z > /dev/null; then
42
+ 7z x -o" $bin_dir " -y " $exe .zip"
43
+ else
44
+ unzip -d " $bin_dir " -o " $exe .zip"
45
+ fi
42
46
chmod +x " $exe "
43
47
rm " $exe .zip"
44
48
You can’t perform that action at this time.
0 commit comments