Skip to content
Snippets Groups Projects
Commit e0aaa8f7 authored by Timothy Lebo's avatar Timothy Lebo
Browse files

cleaned up linker

parent a7cbe7c9
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment