From 967970df7886678bf98df103a9ceec8eb7598d78 Mon Sep 17 00:00:00 2001 From: NRK Date: Mon, 9 Aug 2021 19:45:25 +0600 Subject: [PATCH] code-style: slight cleanup on DATA_DIR --- sxbm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sxbm b/sxbm index 92f8e7f..c57e7b5 100755 --- a/sxbm +++ b/sxbm @@ -15,10 +15,9 @@ APPNAME="sxbm" VERSION="v0.3" -# Where all the data gets stored +# Where all the bookmarks get stored # Respects XDG_DATA_HOME if set -[ -z "$XDG_DATA_HOME" ] && XDG_DATA_HOME="$HOME/.local/share" -DATA_DIR="${XDG_DATA_HOME}/${APPNAME}" +DATA_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/${APPNAME}" DATA_FILE="${DATA_DIR}/bookmarks" # Colors