From 0043b59bc8c7d3d26970eb34a368f660ca8e85aa Mon Sep 17 00:00:00 2001 From: Phil Crockett Date: Sun, 16 Feb 2025 08:22:17 +0100 Subject: [PATCH] fix(export_browser_history): tilde doesn't expand in quotes --- bin/export_browser_history.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/export_browser_history.sh b/bin/export_browser_history.sh index 24eaf185..1312cbe0 100755 --- a/bin/export_browser_history.sh +++ b/bin/export_browser_history.sh @@ -74,7 +74,7 @@ if [[ "$1" == "--safari" ]]; then if [[ -e "$2" ]]; then cp "$2" "$OUTPUT_DIR/safari_history.db.tmp" else - default="~/Library/Safari/History.db" + default=~"/Library/Safari/History.db" echo "Defaulting to history db: $default" echo "Optionally specify the path to a different sqlite history database as the 2nd argument." cp "$default" "$OUTPUT_DIR/safari_history.db.tmp"