mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-04-19 06:11:09 +00:00
mk-sbuild: Enable debugging in the finish.sh script if --debug is used
This commit is contained in:
parent
e193c30695
commit
4e5e6efdb1
@ -139,6 +139,7 @@ EATMYDATA=1
|
||||
while :; do
|
||||
case "$1" in
|
||||
--debug)
|
||||
DEBUG=1
|
||||
set -x
|
||||
shift
|
||||
;;
|
||||
@ -866,7 +867,9 @@ sudo chmod a+x "$MNT"/usr/sbin/policy-rc.d
|
||||
# Create image finalization script
|
||||
sudo bash -c "cat >> $MNT/finish.sh" <<EOM
|
||||
#!/bin/bash
|
||||
#set -x
|
||||
if [ "$DEBUG" = 1 ]; then
|
||||
set -x
|
||||
fi
|
||||
set -e
|
||||
if [ -n "$proxy" ]; then
|
||||
mkdir -p /etc/apt/apt.conf.d/
|
||||
|
Loading…
x
Reference in New Issue
Block a user