Browse Source

Merge pull request #124 from Weilbyte/next

Fix curl check when offline (fix #123)
pull/129/merge
Weilbyte 3 years ago
committed by GitHub
parent
commit
d05b599384
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      PVEDiscordDark.sh

10
PVEDiscordDark.sh

@ -37,11 +37,6 @@ hash sed 2>/dev/null || {
exit 1;
}
hash curl 2>/dev/null || {
echo -e >&2 "${BRED}cURL is required but missing from your system${REG}";
exit 1;
}
hash pveversion 2>/dev/null || {
echo -e >&2 "${BRED}PVE installation required but missing from your system${REG}";
exit 1;
@ -50,6 +45,11 @@ hash pveversion 2>/dev/null || {
if test -d "$OFFLINEDIR"; then
echo "Offline directory detected, entering offline mode."
OFFLINE=true
else
hash curl 2>/dev/null || {
echo -e >&2 "${BRED}cURL is required but missing from your system${REG}";
exit 1;
}
fi
if [ "$OFFLINE" = false ]; then

Loading…
Cancel
Save