Rename scripts, move into sdata/step

This commit is contained in:
clsty
2025-10-18 00:54:58 +08:00
parent 731beb0f7c
commit 7c21ec0c5a
6 changed files with 56 additions and 71 deletions
+5 -2
View File
@@ -1,6 +1,9 @@
#!/usr/bin/env bash
cd "$(dirname "$0")"
# TODO: Use REPO_ROOT instead of base
# Also, when scripts are sourced they do not need export to inherit vars
export base="$(pwd)"
REPO_ROOT="$(pwd)"
source ./sdata/lib/environment-variables.sh
source ./sdata/lib/functions.sh
source ./sdata/lib/package-installers.sh
@@ -13,11 +16,11 @@ set -e
# For subcommands
case ${SCRIPT_SUBCOMMAND} in
exp-uninstall)
source ./sdata/exp/uninstall.sh
source ./sdata/step/exp-uninstall.sh
exit
;;
exp-update)
source ./sdata/exp/update.sh
source ./sdata/step/exp-update.sh
exit
;;
esac