commands
This commit is contained in:
parent
a21a21be9a
commit
e1607151ee
1 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
FILE="$(realpath "${BASH_SOURCE[0]}")"
|
||||||
|
NAME="$(basename "${GITHUB_REPOSITORY}")"
|
||||||
|
ROOT="$(dirname "${FILE}")"
|
||||||
|
|
||||||
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}"
|
||||||
|
@ -8,6 +12,15 @@ PACKAGES=(
|
||||||
'tree'
|
'tree'
|
||||||
)
|
)
|
||||||
SERVER="$(basename ${GITHUB_SERVER_URL})"
|
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
|
# ssh
|
||||||
cd \
|
cd \
|
||||||
|
|
Loading…
Reference in a new issue