stress-server: fix rootdir
[src/app-framework-binder.git] / stress-server.sh
index ec57da5..09d06c4 100755 (executable)
@@ -1,11 +1,10 @@
 #!/bin/bash
 
 ROOT=$(dirname $0)
+cd ${ROOT:-.}
+ROOT=$(pwd)
 echo ROOT=$ROOT
 
-cd $ROOT
-pwd
-
 AFB=build/src/afb-daemon
 HELLO=build/bindings/samples/helloWorld.so
 PORT=12345