Make tools bash compatible

Change-Id: Iccccc91b0a44f92bcbb2442638a93e7624da112b
This commit is contained in:
Dincer Celik 2020-01-20 16:55:16 +03:00
parent 347bd599e5
commit e21a142111
4 changed files with 7 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
# Move to top level directory
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
REAL_PATH=$(realpath $0)
cd "$(dirname "$REAL_PATH")/.."
. tools/validate-docker-execute.sh

View File

@ -1,6 +1,7 @@
#!/bin/bash
REAL_PATH=$(python -c "import os,sys;print(os.path.realpath('$0'))")
# Move to top level directory
REAL_PATH=$(realpath $0)
cd "$(dirname "$REAL_PATH")/.."
RES=0

View File

@ -1,6 +1,7 @@
#!/bin/bash
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
# Move to top level directory
REAL_PATH=$(realpath $0)
cd "$(dirname "$REAL_PATH")/.."
find . -name '*.yaml' -o -name '*.yml' -print0 |

View File

@ -1,6 +1,7 @@
#!/bin/bash
REAL_PATH=$(python -c "import os,sys;print(os.path.realpath('$0'))")
# Move to top level directory
REAL_PATH=$(realpath $0)
cd "$(dirname "$REAL_PATH")/.."
RES=0