Weilbyte
3 years ago
No known key found for this signature in database
GPG Key ID: E1EB2BFCF73B5B9F
1 changed files with
5 additions and
5 deletions
-
PVEDiscordDark.sh
|
@ -37,11 +37,6 @@ hash sed 2>/dev/null || { |
|
|
exit 1; |
|
|
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 || { |
|
|
hash pveversion 2>/dev/null || { |
|
|
echo -e >&2 "${BRED}PVE installation required but missing from your system${REG}"; |
|
|
echo -e >&2 "${BRED}PVE installation required but missing from your system${REG}"; |
|
|
exit 1; |
|
|
exit 1; |
|
@ -50,6 +45,11 @@ hash pveversion 2>/dev/null || { |
|
|
if test -d "$OFFLINEDIR"; then |
|
|
if test -d "$OFFLINEDIR"; then |
|
|
echo "Offline directory detected, entering offline mode." |
|
|
echo "Offline directory detected, entering offline mode." |
|
|
OFFLINE=true |
|
|
OFFLINE=true |
|
|
|
|
|
else |
|
|
|
|
|
hash curl 2>/dev/null || { |
|
|
|
|
|
echo -e >&2 "${BRED}cURL is required but missing from your system${REG}"; |
|
|
|
|
|
exit 1; |
|
|
|
|
|
} |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ "$OFFLINE" = false ]; then |
|
|
if [ "$OFFLINE" = false ]; then |
|
|