Enable error-detection (set -e) in all .sh scripts
This commit is contained in:
parent
d812fc27bd
commit
96727b4241
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
screenshot="$(mktemp --suffix=".png")"
|
screenshot="$(mktemp --suffix=".png")"
|
||||||
|
|
||||||
scrot "$screenshot"
|
scrot "$screenshot"
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
file="$1"
|
file="$1"
|
||||||
width="$2"
|
width="$2"
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
resolution="$1" # e.g. 800x600x24 (width x height x bits_per_pixel)
|
resolution="$1" # e.g. 800x600x24 (width x height x bits_per_pixel)
|
||||||
shift # the following arguments are the program to execute and its arguments
|
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
|
./utils/ansi-screenshots/ansi_screenshot.sh
|
||||||
scrot "$1"
|
scrot "$1"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user