We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd3930e commit 867678cCopy full SHA for 867678c
docker/run.sh
@@ -4,19 +4,18 @@ i=0
4
options=()
5
for f in $FILES; do
6
if [[ -d "$f" ]]; then
7
- ((i++))
8
- options[$i]=$f
+ ((i++))
+ options[$i]=$f
9
fi
10
done
11
PS3="> "
12
select f in "${options[@]}"; do
13
- if (( REPLY > 0 && REPLY <= ${#options[@]} )) ; then
+ if (( REPLY > 0 && REPLY <= ${#options[@]} )); then
14
break
15
else
16
- exit
+ exit
17
18
19
dir=$(readlink -f ..)
20
docker rm "php-crud-api_$f" > /dev/null 2>&1
21
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'
22
-
0 commit comments