Add support to debug
This commit is contained in:
parent
c908d00703
commit
57b73e88fd
@ -137,5 +137,12 @@ Enable autocompletion on your terminal
|
|||||||
eval "$(kickstart autocomplete)"
|
eval "$(kickstart autocomplete)"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Debbuging
|
||||||
|
Prepend DEBUG=1 to the command and you will see massive ammount of commands on your screen
|
||||||
|
|
||||||
|
```bash
|
||||||
|
DEBUG=1 kickstart local nodejs
|
||||||
|
```
|
||||||
|
|
||||||
### Thanks
|
### Thanks
|
||||||
This project was inspired on [sunzi](https://github.com/kenn/sunzi)
|
This project was inspired on [sunzi](https://github.com/kenn/sunzi)
|
||||||
|
@ -7,6 +7,7 @@ target=$1
|
|||||||
shift
|
shift
|
||||||
|
|
||||||
[[ "$1" == "--sudo" ]] && prefix="sudo " && shift
|
[[ "$1" == "--sudo" ]] && prefix="sudo " && shift
|
||||||
|
[ "$DEBUG" ] && debug="-x"
|
||||||
|
|
||||||
remote_command=$(
|
remote_command=$(
|
||||||
cat <<CMD
|
cat <<CMD
|
||||||
@ -14,7 +15,7 @@ cat <<CMD
|
|||||||
mkdir ~/kickstart
|
mkdir ~/kickstart
|
||||||
cd ~/kickstart
|
cd ~/kickstart
|
||||||
tar xz
|
tar xz
|
||||||
$prefix bash install.sh
|
$prefix bash $debug install.sh
|
||||||
CMD
|
CMD
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
[[ "$1" == "--sudo" ]] && prefix="sudo " && shift
|
[[ "$1" == "--sudo" ]] && prefix="sudo " && shift
|
||||||
|
[ "$DEBUG" ] && debug="-x"
|
||||||
|
|
||||||
kickstart compile $@
|
kickstart compile $@
|
||||||
(
|
(
|
||||||
cd compile
|
cd compile
|
||||||
$prefix bash install.sh
|
$prefix bash $debug install.sh
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user