mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2025-03-04 12:19:39 +00:00
Hopefully fail not restore_pkgs.sh with exit code on errors to install_and_cache_pkgs.sh is really run on error.
This commit is contained in:
parent
e40d1ce99b
commit
17ab10b5ac
|
@ -1,7 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Fail on any error.
|
# Fail on any error.
|
||||||
set -e
|
set -eET -o pipefail
|
||||||
|
|
||||||
|
trap 'exit -1' ERR
|
||||||
|
|
||||||
# Debug mode for diagnosing issues.
|
# Debug mode for diagnosing issues.
|
||||||
# Setup first before other operations.
|
# Setup first before other operations.
|
||||||
|
|
Loading…
Reference in a new issue