From 5e2171906b05eef7b2d300c29156cdfb0c3aab7f Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Sat, 11 May 2024 16:43:59 -0300 Subject: [PATCH] Swap shebang with set -e --- README.md | 2 +- bin/setup-srczap | 3 ++- bin/srczap | 3 ++- libexec/srczap/git-changed-files | 3 ++- libexec/srczap/git-removed-files | 3 ++- libexec/srczap/git-rev | 3 ++- libexec/srczap/issrczap-member | 3 ++- libexec/srczap/srczap-clone | 3 ++- libexec/srczap/srczap-erase | 3 ++- libexec/srczap/srczap-install | 3 ++- libexec/srczap/srczap-pull | 3 ++- man/man8/srczap.8 | 2 +- 12 files changed, 22 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index e950804..1369cf0 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ srczap manages a local copy of the [HardenedBSD source tree](https://git.hardenedbsd.org/hardenedbsd/HardenedBSD). The copy of the source tree is maintained by members of the `_srczap` group, and a copy of the source tree -can be installed to `/usr/src/` by root. +can be installed into `/usr/src/` by root. ## Examples diff --git a/bin/setup-srczap b/bin/setup-srczap index 7201024..59418ef 100755 --- a/bin/setup-srczap +++ b/bin/setup-srczap @@ -1,4 +1,5 @@ -#!/bin/sh -e +#!/bin/sh +set -e ## # variables diff --git a/bin/srczap b/bin/srczap index 0358488..623f39d 100755 --- a/bin/srczap +++ b/bin/srczap @@ -1,4 +1,5 @@ -#!/bin/sh -e +#!/bin/sh +set -e ## # variables diff --git a/libexec/srczap/git-changed-files b/libexec/srczap/git-changed-files index 4dc3197..e853a9f 100644 --- a/libexec/srczap/git-changed-files +++ b/libexec/srczap/git-changed-files @@ -1,4 +1,5 @@ -#!/bin/sh -e +#!/bin/sh +set -e ## # variables diff --git a/libexec/srczap/git-removed-files b/libexec/srczap/git-removed-files index aa0ff05..3ab177f 100644 --- a/libexec/srczap/git-removed-files +++ b/libexec/srczap/git-removed-files @@ -1,4 +1,5 @@ -#!/bin/sh -e +#!/bin/sh +set -e ## # variables diff --git a/libexec/srczap/git-rev b/libexec/srczap/git-rev index 9f1437d..e35d6f7 100644 --- a/libexec/srczap/git-rev +++ b/libexec/srczap/git-rev @@ -1,4 +1,5 @@ -#!/bin/sh -e +#!/bin/sh +set -e ## # variables diff --git a/libexec/srczap/issrczap-member b/libexec/srczap/issrczap-member index 535f6a5..d8d63dc 100644 --- a/libexec/srczap/issrczap-member +++ b/libexec/srczap/issrczap-member @@ -1,4 +1,5 @@ -#!/bin/sh -e +#!/bin/sh +set -e group="_srczap" if id -Gn | \ diff --git a/libexec/srczap/srczap-clone b/libexec/srczap/srczap-clone index e88920e..2228c42 100755 --- a/libexec/srczap/srczap-clone +++ b/libexec/srczap/srczap-clone @@ -1,4 +1,5 @@ -#!/bin/sh -e +#!/bin/sh +set -e ## # variables diff --git a/libexec/srczap/srczap-erase b/libexec/srczap/srczap-erase index 54349b6..c05af98 100644 --- a/libexec/srczap/srczap-erase +++ b/libexec/srczap/srczap-erase @@ -1,4 +1,5 @@ -#!/bin/sh -e +#!/bin/sh +set -e ## # variables diff --git a/libexec/srczap/srczap-install b/libexec/srczap/srczap-install index 9ed06ae..8b7c0f3 100755 --- a/libexec/srczap/srczap-install +++ b/libexec/srczap/srczap-install @@ -1,4 +1,5 @@ -#!/bin/sh -e +#!/bin/sh +set -e ## # variables diff --git a/libexec/srczap/srczap-pull b/libexec/srczap/srczap-pull index 84047ef..97a56fc 100755 --- a/libexec/srczap/srczap-pull +++ b/libexec/srczap/srczap-pull @@ -1,4 +1,5 @@ -#!/bin/sh -e +#!/bin/sh +set -e ## # variables diff --git a/man/man8/srczap.8 b/man/man8/srczap.8 index edcdcb5..bdc9fde 100644 --- a/man/man8/srczap.8 +++ b/man/man8/srczap.8 @@ -18,7 +18,7 @@ srczap erase manages a copy of the HardenedBSD source tree. The copy of the source tree is maintained by members of the '_srczap' group, and a copy of the source tree -can be installed to /usr/src/ by root. +can be installed into /usr/src/ by root. .Sh EXAMPLES .sp .sp