Änderungen

Aus Hackerspace Ffm
Wechseln zu: Navigation, Suche

DCEM's bash script howto

Keine Änderung der Größe, 10:23, 26. Mär. 2020
minor corrections (by SublimeText.Mediawiker)
#!/bin/bash
set -o nounset # treat unset variables as an error when substituting
set -o errexit # exit immediately if a command exits with a non-zero status
set -o pipefail # the return value of a pipeline is the status of
# the last command to exit with a non-zero status,
# or zero if no command exited with a non-zero status
set -o errexit # exit immediately if a command exits with a non-zero status
function print_error {
610
Bearbeitungen