Skip to content

Commit 03848fa

Browse files
authored
Merge pull request #67 from nmfs-opensci/eeholmes-dev-1
clean out Desktop dir if it exists
2 parents 205123b + da34e68 commit 03848fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

start

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ shopt -s nullglob
1919
# build-time.
2020
APPLICATIONS_DIR="${HOME}/.local/share/applications"
2121
DESKTOP_DIR="${HOME}/Desktop"
22+
# Remove DESKTOP_DIR if it exists to avoid leftover files
23+
if [ -d "${DESKTOP_DIR}" ]; then
24+
rm -rf "${DESKTOP_DIR}"
25+
fi
2226
mkdir -p "${APPLICATIONS_DIR}"
2327
mkdir -p "${DESKTOP_DIR}"
2428
for desktop_file_path in ${REPO_DIR}/Desktop/*.desktop; do

0 commit comments

Comments
 (0)