.
Some checks failed
Dropshell Test / Build_and_Test (push) Failing after 23s

This commit is contained in:
Your Name
2025-05-10 10:41:31 +12:00
parent 2bcf6c530d
commit e85aa5c81b
12 changed files with 164 additions and 196 deletions

0
templates/dropshell-agent/shared/_autocommands.sh Normal file → Executable file
View File

0
templates/dropshell-agent/shared/_common.sh Normal file → Executable file
View File

View File

@ -0,0 +1,32 @@
#!/bin/bash
directory_to_run_in=${1:-}
command_to_run_base64=${2:-}
if [ -z "$directory_to_run_in" ]; then
echo "Usage: $0 <directory_to_run_in> <command_to_run>"
exit 1
fi
if [ -z "$command_to_run_base64" ]; then
echo "Usage: $0 <directory_to_run_in> <command_to_run>"
exit 1
fi
command_to_run=$(echo "$command_to_run_base64" | base64 -d)
if [ -z "$command_to_run" ]; then
echo "Usage: $0 <directory_to_run_in> <command_to_run>"
exit 1
fi
if [ -n "$directory_to_run_in" ]; then
cd "$directory_to_run_in"
fi
eval "$command_to_run"