commit 8768ff2

hovercats  ·  2022-02-01 23:38:42 +0000 UTC
parent 7c0f6e1
bmks: using :> overwrites the file appearantly. use touch instead. now the script works as intended
1 files changed,  +2, -2
M bmks
M bmks
+2, -2
 1@@ -3,7 +3,7 @@
 2 # A simple bookmarking script that uses dmenu
 3 
 4 file_path="$HOME/.config/bmks/"
 5-filename=urls
 6+filename=urls2
 7 bookmarks="$file_path/$filename"
 8 browser=surf
 9 launcher=dmenu
10@@ -56,7 +56,7 @@ bmks_check () {
11 }
12 
13 [ ! -d "$file_path" ] && mkdir -p "$file_path"
14-[ ! -f "$filename" ] && :> "$file_path/$filename" 
15+[ ! -f "$filename" ] && touch "$file_path/$filename" 
16 
17 case "$1" in
18     help) usage ;;