From 2e1ac0409dd814e7dd646286a5e4cdee4f9b2cad Mon Sep 17 00:00:00 2001 From: Phil Crockett Date: Sun, 16 Feb 2025 08:34:41 +0100 Subject: [PATCH] feat(export_browser_history): fail script when errors occur --- bin/export_browser_history.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/export_browser_history.sh b/bin/export_browser_history.sh index 0f14fe7c..4a0124d8 100755 --- a/bin/export_browser_history.sh +++ b/bin/export_browser_history.sh @@ -11,6 +11,8 @@ # firefox_bookmarks.json # safari_history.json +set -eo pipefail + BROWSER_TO_EXPORT="${1?Please specify --chrome, --firefox, or --safari}" OUTPUT_DIR="$(pwd)"