Browse Source

formatting

Maurits van der Schee 5 years ago
parent
commit
867678c081
1 changed files with 4 additions and 5 deletions
  1. 4
    5
      docker/run.sh

+ 4
- 5
docker/run.sh View File

4
 options=()
4
 options=()
5
 for f in $FILES; do
5
 for f in $FILES; do
6
     if [[ -d "$f" ]]; then
6
     if [[ -d "$f" ]]; then
7
-	((i++))
8
-	options[$i]=$f
7
+        ((i++))
8
+        options[$i]=$f
9
     fi
9
     fi
10
 done
10
 done
11
 PS3="> "
11
 PS3="> "
12
 select f in "${options[@]}"; do
12
 select f in "${options[@]}"; do
13
-    if (( REPLY > 0 && REPLY <= ${#options[@]} )) ; then
13
+    if (( REPLY > 0 && REPLY <= ${#options[@]} )); then
14
         break
14
         break
15
     else
15
     else
16
-	exit
16
+        exit
17
     fi
17
     fi
18
 done
18
 done
19
 dir=$(readlink -f ..)
19
 dir=$(readlink -f ..)
20
 docker rm "php-crud-api_$f" > /dev/null 2>&1
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'
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
-

Loading…
Cancel
Save