Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Add check for broken symlinks to hacking scripts (#2895) #2896

Merged
merged 1 commit into from
Feb 20, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tools/restore_installed_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if [ ! -d "${1}" ]; then
exit;
fi

if [ -d "${1}/Contents/dev" ]; then
if [[ -d "${1}/Contents/dev" || -n $(find -L "${1}/Contents/dev" -type l) ]]; then
rm "${1}/Contents/dev"
echo "$1 has been restored to the installed configuration."
fi
2 changes: 1 addition & 1 deletion tools/setup_for_hacking.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fi;
root_dir=${full_path%/*/*}

# Remove existing "dev" symlink, if present
if [ -d "${1}/Contents/dev" ]; then
if [[ -d "${1}/Contents/dev" || -n $(find -L "${1}/Contents/dev" -type l) ]]; then
rm "${1}/Contents/dev"
fi

Expand Down