فهرست منبع

scripts: move sets out of shebang

The makefile calls the scripts with `bash -x ...`, which overrides the
shebang, so the -e is dropped.
Austin English 4 سال پیش
والد
کامیت
3c57f8e0ab
6فایلهای تغییر یافته به همراه24 افزوده شده و 6 حذف شده
  1. 4 1
      scripts/buildFilesystem.sh
  2. 4 1
      scripts/buildInitramFs.sh
  3. 4 1
      scripts/buildKernel.sh
  4. 4 1
      scripts/crossmenuconfig.sh
  5. 4 1
      scripts/injectKernelIntoFS.sh
  6. 4 1
      scripts/patchKernel.sh

+ 4 - 1
scripts/buildFilesystem.sh

@@ -1,4 +1,7 @@
-#!/bin/bash -xe
+#!/bin/bash
+
+set -x
+set -e
 
 # Build fs, image
 

+ 4 - 1
scripts/buildInitramFs.sh

@@ -1,4 +1,7 @@
-#!/bin/sh -xe
+#!/bin/bash
+
+set -x
+set -e
 
 #Build initramfs image
 

+ 4 - 1
scripts/buildKernel.sh

@@ -1,4 +1,7 @@
-#!/bin/sh -xe
+#!/bin/bash
+
+set -x
+set -e
 
 #Build kenerl, wifi firmware
 

+ 4 - 1
scripts/crossmenuconfig.sh

@@ -1,4 +1,7 @@
-#!/bin/sh -xe
+#!/bin/bash
+
+set -x
+set -e
 
 #Runs Make menuconfig with the proper enviroment vars for cross compiling arm 
 #Grabs the file named config in resources/BuildResources directory, and updates it

+ 4 - 1
scripts/injectKernelIntoFS.sh

@@ -1,4 +1,7 @@
-#!/bin/sh -xe
+#!/bin/bash
+
+set -x
+set -e
 
 # This file is part of PrawnOS (http://www.prawnos.com)
 # Copyright (c) 2018 Hal Emmerich <hal@halemmerich.com>

+ 4 - 1
scripts/patchKernel.sh

@@ -1,4 +1,7 @@
-#!/bin/sh -xe
+#!/bin/bash
+
+set -x
+set -e
 
 if [ -z "$1" ]
 then