This commit is contained in:
Marc Beninca 2024-03-25 19:59:12 +01:00
parent a21a21be9a
commit e1607151ee
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

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