Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
25 lines
683 B
Diff
25 lines
683 B
Diff
diff --git a/pdsadmin.sh b/pdsadmin.sh
|
|
index 913d2b4..b09c20c 100644
|
|
--- a/pdsadmin.sh
|
|
+++ b/pdsadmin.sh
|
|
@@ -15,16 +15,11 @@ if [[ "${EUID}" -ne 0 ]]; then
|
|
exit 1
|
|
fi
|
|
|
|
-# Download the script, if it exists.
|
|
-SCRIPT_URL="${PDSADMIN_BASE_URL}/${COMMAND}.sh"
|
|
-SCRIPT_FILE="$(mktemp /tmp/pdsadmin.${COMMAND}.XXXXXX)"
|
|
+SCRIPT_FILE="NIXPKGS_PDSADMIN_ROOT/lib/pds/${COMMAND}.sh"
|
|
|
|
-if ! curl --fail --silent --show-error --location --output "${SCRIPT_FILE}" "${SCRIPT_URL}"; then
|
|
+if ! [ -f "${SCRIPT_FILE}" ]; then
|
|
echo "ERROR: ${COMMAND} not found"
|
|
exit 2
|
|
fi
|
|
|
|
-chmod +x "${SCRIPT_FILE}"
|
|
-if "${SCRIPT_FILE}" "$@"; then
|
|
- rm --force "${SCRIPT_FILE}"
|
|
-fi
|
|
+"${SCRIPT_FILE}" "$@"
|