Skip to content

Commit

Permalink
Merge pull request #82 from rlcee/edgecase_230703
Browse files Browse the repository at this point in the history
handle case of link points to missing file
  • Loading branch information
rlcee authored Jul 3, 2023
2 parents 7bd78e5 + 23f6d56 commit d522e50
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/museBacking.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,14 @@ if [ -d link ]; then
echo "WARNING - a deprecated link directory exists, but will be ignored"
fi

if [ -e backing ]; then
if [ -L backing ]; then
echo "WARNING - will remove existing backing link:"
/bin/ls -l backing | awk '{print " " $NF}'
/bin/rm backing
elif [ -e backing ]; then
echo "ERROR - backing already exists and not a link"
/bin/ls -l backing
exit 1
fi


Expand Down

0 comments on commit d522e50

Please sign in to comment.