From 6700b22de9c301f414416200cc072fc03b5c8038 Mon Sep 17 00:00:00 2001 From: Mike Rushton Date: Sat, 13 Apr 2024 11:35:36 -0400 Subject: [PATCH] check for requirements --- README.md | 6 ++++++ deploy-staging.sh | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index 99de3a4..8d36c43 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,9 @@ Features: - viewable on mobile - refreshes the data automatically without having to refresh the whole page (30 seconds) - server-side caching of the data so as not to overwhelm the Octoprint API's (1 minute) + +Requirements: +- php +- git (for deployment script) +- curl (for deployment script) +- jq (for deployment script) diff --git a/deploy-staging.sh b/deploy-staging.sh index 5636d0f..d061ce3 100755 --- a/deploy-staging.sh +++ b/deploy-staging.sh @@ -1,5 +1,11 @@ #!/bin/bash +if command -v curl &> /dev/null && command -v git &> /dev/null && command -v jq &> /dev/null; then + echo "ok" +else + echo "Missing dependencies" +fi + staging_dir="/var/www/staging" repo_owner=lowellmakes repo_name=3dprinterstatus