From 83a8c242f2cd350e0a8d0700179aa8c45a28ed20 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 10 Mar 2011 21:13:43 -0500 Subject: Use a better check for write permission --- examples/data/scripts/history.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/data/scripts/history.sh') diff --git a/examples/data/scripts/history.sh b/examples/data/scripts/history.sh index 4b660c3..4b4e970 100755 --- a/examples/data/scripts/history.sh +++ b/examples/data/scripts/history.sh @@ -2,6 +2,6 @@ . "$UZBL_UTIL_DIR/uzbl-dir.sh" -[ -w "$UZBL_HISTORY_FILE" ] || [ ! -a "$UZBL_HISTORY_FILE" ] || exit 1 +>> "$UZBL_HISTORY_FILE" || exit 1 printf "$( date +'%Y-%m-%d %H:%M:%S' ) $UZBL_URI $UZBL_TITLE\n" >> "$UZBL_HISTORY_FILE" -- cgit v1.2.3