−commands

This commit is contained in:
Marc Beninca 2024-05-30 21:31:29 +02:00
parent aaa73f75c8
commit 887ef88ba9
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,22 +1,10 @@
#! /usr/bin/env bash #! /usr/bin/env bash
FILE="$(realpath "${BASH_SOURCE[0]}")"
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}"
KEY_PUBLIC='AAAAC3NzaC1lZDI1NTE5AAAAIPHCNcgHlQoiNTXfnUZYvHz9OZwYsmBCrSSV7a7Zche5' KEY_PUBLIC='AAAAC3NzaC1lZDI1NTE5AAAAIPHCNcgHlQoiNTXfnUZYvHz9OZwYsmBCrSSV7a7Zche5'
SERVER="$(basename ${GITHUB_SERVER_URL})" SERVER="$(basename ${GITHUB_SERVER_URL})"
TARGET='/usr/local/sbin'
# commands
cd "${ROOT}/${COMMANDS}" \
|| exit
for file in *.sh ; do
cp "${file}" "${TARGET}/${file%.sh}" \
|| exit
done
# ssh # ssh
cd \ cd \