History

fix error_out (line/errno handling)

M. Dietrich committed 10 years ago

Commit fbe5b8d1 parent 7428a521 file · +2 −2Browse files

Unified · Split

mklive.sh.in+2−2
@@ -26,7 +26,7 @@ · 25 unmodified lines
2626 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2727 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828 #-
29−trap "error_out $LINENO $?" INT TERM 0
29+trap 'error_out $? $LINENO' INT TERM 0
3030
3131 readonly REQUIRED_PKGS="base-files libgcc dash coreutils sed tar gawk syslinux grub-i386-efi grub-x86_64-efi squashfs-tools xorriso"
3232 readonly INITRAMFS_PKGS="binutils xz device-mapper"
@@ -37,7 +37,7 @@ info_msg() { · 4 unmodified lines
3737 }
3838 die() {
3939 info_msg "ERROR: $@"
40− error_out 1
40+ error_out 1 $LINENO
4141 }
4242 print_step() {
4343 CURRENT_STEP=$((CURRENT_STEP+1))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t