guysoft / CustomPiOS

A Raspberry Pi and other ARM devices distribution builder
GNU General Public License v3.0
509 stars 146 forks source link

[?] How to rid all set -x commands #49

Closed WheresWaldo closed 5 years ago

WheresWaldo commented 5 years ago

I have my OS build working very well (building on Debian), we are nearing the 2nd phase of our OS project. the inclusion of a custom GUI that mimics the Robo3D GUI. But now I am trying to streamline the build log. I thought I had removed all the set -x commands from my module as well as the modules I use from CustomPiOS, but apparently there is one hidden somewhere. When I look at the build log now, it is cleaned up until you get to the point in the build just after the last line of my module's start-chroot-script (there is nothing in the end-chroot-script). Then I see in the log

+ '[' -d custompios_export ']'
+ rm chroot_script
+ '[' -d filesystem ']'
+ rm -rfv filesystem

my config runs everything in base so it looks like this: export MODULES="base(raspicam,network,disable-services(communityos),password-for-sudo)" I looked at modules raspicam, network, disable-services, password-for-sudo as well as all the bash scripts I could find, like common.sh, argparse.bash, basically every single file that has #!/bin/bash or #!/usr/bin/env bash as the first line. But somewhere there is a set -x that I can't find.

WheresWaldo commented 5 years ago

It was my mistake, I had a set command at the very bottom of my script in the clean up section, I am closing this.