various fixes
[buildscripts] / update-builds
index b2c71d4e5efff5ef0a4159eb2db30d1e47b50b87..091ee60cdf7780fcd6e5864b49b1c33bbc9d1653 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 
-cd "${BASH_SOURCE%/*}" # directory of the script
+x="$(readlink -f "$BASH_SOURCE")"; cd ${x%/*}
 for x in *; do
     if [[ $x == update-builds || ! -x $x || -d $x ]]; then
         continue