From 67286496bd0ae9c197c38fe6dd475e3fee485d0a Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Wed, 30 May 2012 11:35:33 +1200 Subject: [PATCH] Fixed `design link` command to use first match, if project is symlinked into multiple directories --- lib/design.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/design.sh b/lib/design.sh index 4d387ab..5106247 100644 --- a/lib/design.sh +++ b/lib/design.sh @@ -72,7 +72,7 @@ design() { echo "== Linking existing Design directories into existing repos..." for design_project in $root_design_dir/projects/*; do proj=$(basename $design_project) - repo_path=$(grep "/$proj$" $GIT_REPO_DIR/.git_index) + repo_path=$(grep -m1 "/$proj$" $GIT_REPO_DIR/.git_index) if [ -n "$repo_path" ]; then if ! [ -e "$repo_path/$project_design_dir" ]; then ln -fs "$design_project" "$repo_path/$project_design_dir"