From ad738a4c61639beb8be960695bca3eddbbb82015 Mon Sep 17 00:00:00 2001 From: rick <7rick@tuta.io> Date: Sun, 4 Jul 2021 08:01:07 +0530 Subject: [PATCH] fixed two bugs --- twtxt-c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twtxt-c b/twtxt-c index fb69d7e..34dcde9 100755 --- a/twtxt-c +++ b/twtxt-c @@ -34,10 +34,10 @@ case $1 in -* | --*) usage; error_exit "unknown option $1" ;; init) - read -p "Your desired nickname [$USER]: " nickname + read -p "Your desired nickname [$USER]: " nick nick=${nick:-"$USER"} read -p "Type path to your twtxt [/home/$USER/twtxt.txt]: " path_to_twtxt - twtxt=${path_to_twtxt:-"/home/$USER/twtxt.txt"} + path_to_twtxt=${path_to_twtxt:-"/home/$USER/twtxt.txt"} echo "" >> $path_to_twtxt read -p "Type path to your twtxt config folder [/home/$USER/.config/twtxt-c/]: " config config=${config:-"/home/$USER/.config/twtxt-c/"}