mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-03-28 17:43:05 +01:00
Add some QOL features to readiness scripts
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
# developer perogative ;D
|
||||
if command -v enablenvm >/dev/null 2>&1; then
|
||||
enablenvm >/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
|
||||
# Colors for output
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
@@ -36,16 +42,10 @@ PID_BACKEND_LINT=$!
|
||||
PID_FRONTEND_LINT=$!
|
||||
|
||||
(
|
||||
echo -e "${BLUE}[licenses]${NC} Checking LICENSES.md freshness..."
|
||||
echo -e "${BLUE}[licenses]${NC} Regenerating LICENSES.md (always run)..."
|
||||
cd "$SCRIPT_DIR"
|
||||
TMPLIC=$(mktemp)
|
||||
trap "rm -f \$TMPLIC" EXIT
|
||||
bash scripts/collect_licenses.sh "$TMPLIC"
|
||||
if ! diff -q "$TMPLIC" LICENSES.md > /dev/null 2>&1; then
|
||||
echo -e "${RED}[licenses]${NC} LICENSES.md is stale — run scripts/collect_licenses.sh"
|
||||
exit 1
|
||||
fi
|
||||
echo -e "${GREEN}[licenses]${NC} Passed!"
|
||||
bash scripts/collect_licenses.sh LICENSES.md
|
||||
echo -e "${GREEN}[licenses]${NC} LICENSES.md updated"
|
||||
) &
|
||||
PID_LICENSES=$!
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Collect third-party license texts into LICENSES.md
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
# Colors for output
|
||||
|
||||
Reference in New Issue
Block a user