This commit is contained in:
Marc Beninca 2024-03-25 20:49:12 +01:00
parent c1aad03c68
commit 71cd517840
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
8 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
FILE="$(realpath "${BASH_SOURCE[0]}")" FILE="$(realpath "${BASH_SOURCE[0]}")"
NAME="$(basename "${GITHUB_REPOSITORY}")"
ROOT="$(dirname "${FILE}")" ROOT="$(dirname "${FILE}")"
COMMANDS='cmd'
KEY_ALGORITHM='ed25519' KEY_ALGORITHM='ed25519'
KEY_DIRECTORY='.ssh' KEY_DIRECTORY='.ssh'
KEY_PATH="${KEY_DIRECTORY}/id_${KEY_ALGORITHM}" KEY_PATH="${KEY_DIRECTORY}/id_${KEY_ALGORITHM}"
@ -15,7 +15,7 @@ SERVER="$(basename ${GITHUB_SERVER_URL})"
TARGET='/usr/local/sbin' TARGET='/usr/local/sbin'
# commands # commands
cd "${ROOT}/${NAME}" \ cd "${ROOT}/${COMMANDS}" \
|| exit || exit
for file in *.sh ; do for file in *.sh ; do
cp "${file}" "${TARGET}" \ cp "${file}" "${TARGET}" \