config file location in tweet

This commit is contained in:
rick 2021-07-04 08:25:16 +05:30
parent 6a251b4555
commit 812aa37604
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ case $1 in
printf "[twtxt]\n nick = %s\n twtfile = %s\n url = %s\n" "$nick" "$path_to_twtxt" "$url" >> $config/config
;;
tweet)
export config=/home/g1n/.config/twtxt/config
export config=/home/$USER/.config/twtxt-c/config
printf "%s\t%s\n" "$(date +'%FT%T%:z')" "$2" >> $(awk '/twtfile/ {print $3}' $config)
;;
*)