Enable error-detection (set -e) in all .sh scripts
This commit is contained in:
parent
d812fc27bd
commit
96727b4241
|
@ -1,5 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
screenshot="$(mktemp --suffix=".png")"
|
||||
|
||||
scrot "$screenshot"
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
file="$1"
|
||||
width="$2"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,2 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
./utils/ansi-screenshots/ansi_screenshot.sh
|
||||
scrot "$1"
|
||||
|
|
Loading…
Reference in New Issue
Block a user