From 50afdae755cc8ee586cfd8a0cc361f639c5cd7a0 Mon Sep 17 00:00:00 2001 From: Fil Date: Tue, 16 Jun 2020 14:47:12 +0200 Subject: [PATCH] Clean up shell option setting Signed-off-by: Fil --- scripts/InstallScripts/FlashKernelPart.sh | 4 +++- scripts/LibKernelUpgrade.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/InstallScripts/FlashKernelPart.sh b/scripts/InstallScripts/FlashKernelPart.sh index d285b69..aabfd0b 100755 --- a/scripts/InstallScripts/FlashKernelPart.sh +++ b/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 @@ -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 diff --git a/scripts/LibKernelUpgrade.sh b/scripts/LibKernelUpgrade.sh index d523a02..869c0be 100755 --- a/scripts/LibKernelUpgrade.sh +++ b/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