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

This commit is contained in:
Georges Dupéron 2018-07-03 10:30:57 +02:00
parent d812fc27bd
commit 96727b4241
4 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#!/bin/sh
set -e
screenshot="$(mktemp --suffix=".png")"
scrot "$screenshot"

View File

@ -1,5 +1,7 @@
#!/bin/bash
set -e
file="$1"
width="$2"

View File

@ -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

View File

@ -1,2 +1,6 @@
#!/bin/sh
set -e
./utils/ansi-screenshots/ansi_screenshot.sh
scrot "$1"