replace Move with Moving

This commit is contained in:
Tobias Powalowski 2023-01-19 09:24:00 +01:00
parent 95d975f177
commit 948aa0a04d
3 changed files with 5 additions and 5 deletions

View file

@ -36,7 +36,7 @@ _root_check
echo "Starting container creation..."
# remove old files
[[ -f ${_PACMAN_ARCH_CHROOT} ]] && rm "${_PACMAN_ARCH_CHROOT}"{,.sig} 2>/dev/null
echo "Create directory ${1}..."
echo "Creating directory ${1}..."
mkdir -p "${1}"/"${_PACMAN_ARCH}"
echo "Downloading archlinux ${_ARCH}..."
! [[ -f ${_ARCH_VERSION} ]] && wget "${_LATEST_ARCH}" &>/dev/null
@ -59,7 +59,7 @@ tar -acf "${_PACMAN_ARCH_CHROOT}" -C "${1}"/"${_PACMAN_ARCH}" . &>/dev/null || e
echo "Removing ${1}..."
rm -r "${1}"
echo "Finished container tarball."
echo "Sign tarball..."
echo "Signing tarball..."
#shellcheck disable=SC2086
sudo -u "${_USER}" gpg ${_GPG} ${_PACMAN_ARCH_CHROOT} || exit 1
chown "${_USER}":"${_GROUP}" "${_PACMAN_ARCH_CHROOT}"{,.sig} || exit 1

View file

@ -5,7 +5,7 @@
[[ -z "${1}" ]] && _usage
_root_check
_container_check
echo "Start release creation in ${1}..."
echo "Starting release creation in ${1}..."
_create_iso "$@" || exit 1
echo "Finished release creation in ${1} ."
echo "Finished release creation in ${1}."

View file

@ -60,7 +60,7 @@ echo "Removing old ${1}/${_ARCH}/${_DIR} directory..."
rm -r "${1}"/"${_ARCH}"/"${_DIR}"
echo "Removing old purge date reached ${1}/${_ARCH}/$(date -d "$(date +) - ${_PURGE_DATE}" +%Y.%m) directory..."
rm -r "${1}"/"${_ARCH}"/"$(date -d "$(date +) - ${_PURGE_DATE}" +%Y.%m)" 2>/dev/null
echo "Move ${_ARCH}/${_DIR} to ${1}/${_ARCH}..."
echo "Moving ${_ARCH}/${_DIR} to ${1}/${_ARCH}..."
mv "${_ARCH}/${_DIR}" "${1}"/"${_ARCH}"
echo "Removing ${_SERVER_HOME}/${_ARCH} directory..."
rm -r "${_SERVER_HOME}/${_ARCH}"