From b267754d0d210b051eec34da690e050d97d4d0c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Wed, 25 Dec 2019 01:17:24 +0100 Subject: [PATCH] symlink script for 3d shapes now takes athe target folder as argument --- footprints/packages3d/symlink.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/footprints/packages3d/symlink.sh b/footprints/packages3d/symlink.sh index 6256c2c..036e7b9 100755 --- a/footprints/packages3d/symlink.sh +++ b/footprints/packages3d/symlink.sh @@ -1,8 +1,12 @@ #!/bin/bash -echo "Enter the path to the packages3d folder. This script will symlink all 3d models into this folder" -echo -n "Path: " -read packagedir +if [ -z $1 ]; then + echo "Enter the path to the packages3d folder. This script will symlink all 3d models into this folder" + echo -n "Path: " + read packagedir +else + packagedir="$1" +fi shimattadir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd $packagedir