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 01b4fdc commit 56960ceCopy full SHA for 56960ce
docker/debug.sh
@@ -0,0 +1,20 @@
1
+#!/bin/bash
2
+FILES=*
3
+i=0
4
+options=()
5
+for f in $FILES; do
6
+ if [[ -d "$f" ]]; then
7
+ ((i++))
8
+ options[$i]=$f
9
+ fi
10
+done
11
+PS3="> "
12
+select f in "${options[@]}"; do
13
+ if (( REPLY > 0 && REPLY <= ${#options[@]} )) ; then
14
+ break
15
+ else
16
+ exit
17
18
19
+docker rm "php-crud-api_$f" > /dev/null 2>&1
20
+docker run -ti --name "php-crud-api_$f" "php-crud-api:$f" /bin/bash -c '/usr/sbin/docker-run && cd php-crud-api && /bin/bash'
0 commit comments