cleaning up old files
This commit is contained in:
@@ -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}"
|
||||
|
||||
@@ -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}"
|
||||
|
||||
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user