From 52c13341e0087dfcfbff1641b64d3e031ab78eb6 Mon Sep 17 00:00:00 2001 From: Karsten Hachmeister Date: Sat, 16 Jul 2022 22:05:38 +0200 Subject: [PATCH] cleaning up old files --- .config/yadm/bootstrap.d/install-helix | 3 +++ .config/yadm/bootstrap.d/install-kitty | 3 +++ .config/yadm/bootstrap.d/install-starship | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.config/yadm/bootstrap.d/install-helix b/.config/yadm/bootstrap.d/install-helix index a57e245..2d3ca18 100755 --- a/.config/yadm/bootstrap.d/install-helix +++ b/.config/yadm/bootstrap.d/install-helix @@ -41,3 +41,6 @@ mv "${APPS_DIR}/helix-${VERSION}-x86_64-linux" "${INSTALL_DIR}" echo "Creating link to helix editor executable..." mkdir -p "${HOME}/.local/bin" ln -s --force "${INSTALL_DIR}/hx" "${HOME}/.local/bin/" + +echo "Removing ${TARGET}..." +rm -f "${TARGET}" diff --git a/.config/yadm/bootstrap.d/install-kitty b/.config/yadm/bootstrap.d/install-kitty index 5b5d56f..90a37e6 100755 --- a/.config/yadm/bootstrap.d/install-kitty +++ b/.config/yadm/bootstrap.d/install-kitty @@ -44,3 +44,6 @@ mkdir -p "${HOME}/.local/share/applications" cp "${INSTALL_DIR}/share/applications/kitty.desktop" "${HOME}/.local/share/applications/" sed -i "s|Icon=kitty|Icon=${INSTALL_DIR}/share/icons/hicolor/256x256/apps/kitty.png|g" "${HOME}/.local/share/applications/kitty.desktop" sed -i "s|Exec=kitty|Exec=${INSTALL_DIR}/bin/kitty|g" "${HOME}/.local/share/applications/kitty.desktop" + +echo "Removing ${TARGET}..." +rm -f "${TARGET}" diff --git a/.config/yadm/bootstrap.d/install-starship b/.config/yadm/bootstrap.d/install-starship index 2fe668a..de600bd 100755 --- a/.config/yadm/bootstrap.d/install-starship +++ b/.config/yadm/bootstrap.d/install-starship @@ -24,7 +24,7 @@ URL="https://github.com/starship/starship/releases/download/v${VERSION}/starship echo "Downloading from ${URL}..." TARGET="$(download "$URL")" -if [[ -d "${INSTALL_DIR}" ]] ; then +if [[ -f "${INSTALL_DIR}/starship" ]]; then echo "Removing old starship command..." rm -f "${INSTALL_DIR}/starship" fi @@ -33,3 +33,6 @@ echo "Unpacking starship command to ${INSTALL_DIR}..." mkdir -p "${INSTALL_DIR}" tar --directory="${INSTALL_DIR}" -xf "${TARGET}" starship chmod +x "${INSTALL_DIR}/starship" + +echo "Removing ${TARGET}..." +rm -f "${TARGET}"