Compare commits

..

No commits in common. "10280bcdd9256b27020e9cfb6076eedd32a087c9" and "a21a21be9a2155cdf565febb5df2a82f5211c62e" have entirely different histories.

10 changed files with 7 additions and 23 deletions

View file

@ -1,7 +1,3 @@
FILE="$(realpath "${BASH_SOURCE[0]}")"
ROOT="$(dirname "${FILE}")"
COMMANDS='cmd'
KEY_ALGORITHM='ed25519'
KEY_DIRECTORY='.ssh'
KEY_PATH="${KEY_DIRECTORY}/id_${KEY_ALGORITHM}"
@ -12,15 +8,6 @@ PACKAGES=(
'tree'
)
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
cd \
@ -37,8 +24,4 @@ echo "${SERVER} ssh-${KEY_ALGORITHM} ${KEY_PUBLIC}" \
|| exit
# packages
apt-get install --yes "${PACKAGES[@]}" \
|| exit
# remove
rm --force --recursive "${ROOT}"
apt-get install --yes "${PACKAGES[@]}"

2
cd-list-environment Executable file
View file

@ -0,0 +1,2 @@
unset TOP_SECRET
env | sort

8
cd.sh
View file

@ -5,6 +5,7 @@ PACKAGES=(
'git'
)
REPOSITORY='rwx.work/cd'
TARGET='/usr/local/sbin'
for nameserver in "${NAMESERVERS[@]}" ; do
echo "nameserver ${nameserver}" \
@ -18,10 +19,9 @@ apt-get update \
apt-get install --yes "${PACKAGES[@]}" \
|| exit
DIRECTORY="$(mktemp --directory)" \
|| exit
git clone \
"${GITHUB_SERVER_URL}/${REPOSITORY}" \
"${DIRECTORY}" \
"${TARGET}" \
|| exit
"${DIRECTORY}/bootstrap.sh"
cd-bootstrap.sh

View file

@ -1 +0,0 @@
env | sort