File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -319,6 +319,11 @@ install_pwalk() {
319
319
320
320
echo -e " \nInstalling third-party dependency: pwalk... "
321
321
322
+ if ! curl -s --head https://github.com | grep " HTTP/2 200" > /dev/null; then
323
+ echo " rclone downloads page https://downloads.rclone.org is not reachable. Please check your firewall settings."
324
+ exit 1
325
+ fi
326
+
322
327
# Variables of pwalk third-party tool froster is using
323
328
pwalk_commit=1df438e9345487b9c51d1eea3c93611e9198f173 # update this commit when new pwalk version released
324
329
pwalk_repository=https://github.com/fizwit/filesystem-reporting-tools/archive/${pwalk_commit} .tar.gz
@@ -357,6 +362,12 @@ install_rclone() {
357
362
358
363
echo -e " \nInstalling third-party dependency: rclone... "
359
364
365
+ if ! curl -s --head https://downloads.rclone.org | grep " HTTP/2 200" > /dev/null; then
366
+ echo " rclone downloads page https://downloads.rclone.org is not reachable. Please check your firewall settings."
367
+ exit 1
368
+ fi
369
+
370
+
360
371
# Check the architecture of the system
361
372
arch=$( uname -m)
362
373
You can’t perform that action at this time.
0 commit comments