run_tests.sh: removed bash dependency
It is not always a good idea to guess that everyone uses bash. There are other even more functional shells. So, if it is possible to avoid specific shell dependency we certainly need to do this. Closes-bug: 1430517 Change-Id: Iff529c63f333b382a3a6d6304d42ee3259c33cae
This commit is contained in:
parent
93de472789
commit
4f0d685f1e
|
@ -1,18 +1,11 @@
|
|||
#!/bin/bash
|
||||
# astute_rspec_check.sh
|
||||
# RVM
|
||||
source ~/.bash_profile
|
||||
|
||||
set -e
|
||||
|
||||
# change dir to the path of the directory in which a current bash script is located
|
||||
# source: http://stackoverflow.com/a/179231/842168
|
||||
function cd_workspace() {
|
||||
SCRIPT_PATH="${BASH_SOURCE[0]}";
|
||||
if ([ -h "${SCRIPT_PATH}" ]) then
|
||||
while([ -h "${SCRIPT_PATH}" ]) do cd `dirname "$SCRIPT_PATH"`; SCRIPT_PATH=`readlink "${SCRIPT_PATH}"`; done
|
||||
fi
|
||||
cd `dirname ${SCRIPT_PATH}` > /dev/null
|
||||
cd $(dirname $(readlink -f $0)) > /dev/null
|
||||
}
|
||||
|
||||
function license_check() {
|
||||
|
|
Loading…
Reference in New Issue