www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 96727b424184400ffad582f8c74d2c02997cfe59
parent d812fc27bd0f55af8324ae4b8175b554767eb444
Author: Georges Dupéron <georges.duperon@gmail.com>
Date:   Tue,  3 Jul 2018 10:30:57 +0200

Enable error-detection (set -e) in all .sh scripts

Diffstat:
Mutils/ansi-screenshots/ansi_screenshot.sh | 2++
Mutils/ansi-screenshots/to_ansi.sh | 2++
Mutils/gui-wrapper.sh | 2++
Mutils/take-screenshots.sh | 4++++
4 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/utils/ansi-screenshots/ansi_screenshot.sh b/utils/ansi-screenshots/ansi_screenshot.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -e + screenshot="$(mktemp --suffix=".png")" scrot "$screenshot" diff --git a/utils/ansi-screenshots/to_ansi.sh b/utils/ansi-screenshots/to_ansi.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + file="$1" width="$2" diff --git a/utils/gui-wrapper.sh b/utils/gui-wrapper.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -e + resolution="$1" # e.g. 800x600x24 (width x height x bits_per_pixel) shift # the following arguments are the program to execute and its arguments diff --git a/utils/take-screenshots.sh b/utils/take-screenshots.sh @@ -1,2 +1,6 @@ +#!/bin/sh + +set -e + ./utils/ansi-screenshots/ansi_screenshot.sh scrot "$1"