Skip to content

Commit fd3930e

Browse files
committed
Improve robustness
1 parent 1804510 commit fd3930e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docker/run.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ select f in "${options[@]}"; do
1616
exit
1717
fi
1818
done
19-
dir=$(dirname $0)
20-
dir=$(readlink -f $dir)
21-
dir=$(dirname $dir)
19+
dir=$(readlink -f ..)
2220
docker rm "php-crud-api_$f" > /dev/null 2>&1
2321
docker run -ti -v $dir:/php-crud-api --name "php-crud-api_$f" "php-crud-api:$f" /bin/bash -c '/usr/sbin/docker-run && cd php-crud-api && /bin/bash'
2422

0 commit comments

Comments
 (0)