Skip to content
Snippets Groups Projects
Unverified Commit d05b5993 authored by Weilbyte's avatar Weilbyte Committed by GitHub
Browse files

Merge pull request #124 from Weilbyte/next

Fix curl check when offline (fix #123)
parents a3b8d7bd a73eb2d4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment