Add support to debug

This commit is contained in:
Bruno Tavares
2014-02-21 21:14:39 -03:00
parent c908d00703
commit 57b73e88fd
3 changed files with 11 additions and 2 deletions

View File

@ -1,9 +1,10 @@
#!/bin/bash -e
[[ "$1" == "--sudo" ]] && prefix="sudo " && shift
[ "$DEBUG" ] && debug="-x"
kickstart compile $@
(
cd compile
$prefix bash install.sh
$prefix bash $debug install.sh
)