浏览代码

Clean up shell option setting

Signed-off-by: Fil <fil.bergamo@riseup.net>
Fil 4 年之前
父节点
当前提交
50afdae755
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 3 1
      scripts/InstallScripts/FlashKernelPart.sh
  2. 1 1
      scripts/LibKernelUpgrade.sh

+ 3 - 1
scripts/InstallScripts/FlashKernelPart.sh

@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/sh
 
 # This file is part of PrawnOS (http://www.prawnos.com)
 # Copyright (c) 2018 Hal Emmerich <hal@halemmerich.com>
@@ -75,6 +75,8 @@ get_root_partition()
 
 # ------------- BEGIN SCRIPT EXECUTION --------------------
 
+set -e
+
 # Check root or sudo
 [ ! $(id -u) = 0 ] &&
     die "Please run this script with sudo, or as root" 1

+ 1 - 1
scripts/LibKernelUpgrade.sh

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