From e0aaa8f7d492bd91aa8234e8ff4d96c268d01f5e Mon Sep 17 00:00:00 2001 From: Timothy Lebo <timrdf@gmail.com> Date: Tue, 17 Jan 2012 20:35:15 -0500 Subject: [PATCH] cleaned up linker --- utils/link-components.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/link-components.sh b/utils/link-components.sh index c75026a6..43031139 100755 --- a/utils/link-components.sh +++ b/utils/link-components.sh @@ -22,8 +22,10 @@ # WARNING: not linking models because it exists. # WARNING: not linking views because it exists. +essentials='settings.inc.php .htaccess models views' if [ $# -lt 1 ]; then echo "usage: `basename $0` other-lodspeakr-directory" + echo " soft links the following from other-lodspeakr-director to current directory: $essentials" exit 1 fi @@ -33,7 +35,7 @@ if [[ ! -d $otherDir && "$otherDir" != "/" ]]; then exit 1 fi -for essential in settings.inc.php .htaccess models views; do +for essential in $essentials; do if [[ ! -e $essential && -e $otherDir/$essential ]]; then echo ln -s $otherDir/$essential $essential ln -s $otherDir/$essential -- GitLab