mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Handle package download failure
This commit is contained in:
1 parent
fc2e4e0e23
commit
363657717c
1 file changed
+5
@@ -70,6 +70,11 @@ packageuri=$(curl -s -i -H 'Accept: application/octet-stream' "https://api.githu
|
||||
grep location | sed 's/location: //g')
|
||||
curl -C - -o "$package" ${packageuri%$'\r'}
|
||||
|
||||
if [[ ! -r "$package" ]]; then
|
||||
echo "ERROR: $package failed to download! Aborting..." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Installs PowerShell package
|
||||
case "$OSTYPE" in
|
||||
linux*)
|
||||
|
||||
Reference in new issue
Block a user