comparison scripts/.functions.sh @ 144:249ec634da33

DEP-12: rmove debugging echos
author smith@nwoca.org
date Mon, 10 Jul 2017 18:02:19 +0100
parents c029be781d13
children 018f62da1931
comparison
equal deleted inserted replaced
143:c029be781d13 144:249ec634da33
1 #!/bin/bash 1 #!/bin/bash
2
3 getScriptDir() { 2 getScriptDir() {
4 SOURCE="${BASH_SOURCE[0]}" 3 SOURCE="${BASH_SOURCE[0]}"
5 while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done 4 while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
6 echo $( cd $( dirname $SOURCE) && pwd ) 5 echo $( cd $( dirname $SOURCE) && pwd )
7 } 6 }