Skip to content

Commit d9745aa

Browse files
committed
ci: Rewrite hardcoded path 'robot_framework/html'
Construct path as parent dir of 'init-robot.sh' script plus 'html' directory.
1 parent 9319099 commit d9745aa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.ci/robot_framework/init-robot.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
LOCKFILE="/tmp/init-robot.lock"
44

5+
ROBOT_FRAMEWORK_HTML="$(dirname "$0")/html"
6+
57
# Create lock and ensure removal on exit
68
trap 'rm -f "$LOCKFILE"' EXIT
79
if [ -e "$LOCKFILE" ]; then
@@ -31,7 +33,7 @@ pip install --root-user-action ignore \
3133
robotframework-seleniumlibrary==6.8.0 \
3234
robotframework-sshlibrary==3.8.0
3335

34-
pushd robot_framework/html/
36+
pushd "$ROBOT_FRAMEWORK_HTML"
3537
if [ ! -d "rbyers" ]; then
3638
git clone https://github.com/RByers/rbyers.github.io.git rbyers
3739
fi

0 commit comments

Comments
 (0)