File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
REPO=${1:- https:// github.com/ OleksiiBulba/ php-dockerizer}
4
4
VERSION=${2:- origin/ master}
5
- INSTALL_DIR=${3:- dockerizer}
5
+ INSTALL_ROOT=${3:- ./ }
6
+ INSTALL_DIR=${4:- dockerizer}
6
7
7
- mkdir $INSTALL_DIR ; cd ./$INSTALL_DIR
8
+ INSTALL_ROOT=$( realpath $INSTALL_ROOT )
9
+
10
+ CURRENT_DIR=$( pwd)
11
+ cd $INSTALL_ROOT ; mkdir $INSTALL_DIR ; cd ./$INSTALL_DIR
8
12
9
13
git init -qqq
10
14
git remote add origin $REPO
@@ -17,3 +21,4 @@ shopt -s dotglob
17
21
mv ./src/* ../
18
22
$PREV_DOTGLOB
19
23
cd ../; rm -rf ./$INSTALL_DIR
24
+ cd $CURRENT_DIR
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ branch=$( git branch | sed -n -e ' s/^\* \(.*\)/\1/p' )
4
+ curl -s https://raw.githubusercontent.com/OleksiiBulba/php-dockerizer/master/bin/onlinesetup | bash -s -- https://github.com/OleksiiBulba/php-dockerizer $branch dockerizer
You can’t perform that action at this time.
0 commit comments