Make prompts in same line as question

This commit is contained in:
Ceda EI 2020-11-05 18:22:17 +05:30
parent ffcdeedbc9
commit 79ef6da558
1 changed files with 5 additions and 3 deletions

View File

@ -75,7 +75,7 @@ if [[ $FIREFOX_PROFILE == "" ]] || (( NEW == 1 )); then
echo -n "Use an existing profile for apps? (y/N): " echo -n "Use an existing profile for apps? (y/N): "
read -r input read -r input
if [[ ${input^^} == "Y" ]]; then if [[ ${input^^} == "Y" ]]; then
echo "Enter path to existing profile (or run the script with --firefox_profile): " echo -n "Enter path to existing profile (or run the script with --firefox_profile): "
read -r FIREFOX_PROFILE read -r FIREFOX_PROFILE
else else
NEW=1 NEW=1
@ -113,13 +113,13 @@ read -r
mkdir "$FIREFOX_PROFILE/chrome" &> /dev/null || true mkdir "$FIREFOX_PROFILE/chrome" &> /dev/null || true
HIDDEN_SELECTORS=() HIDDEN_SELECTORS=()
echo -e "Do you want to hide tabs? (y/N)" echo -n "Do you want to hide tabs? (y/N) "
read -r input read -r input
if [[ ${input^^} == "Y" ]]; then if [[ ${input^^} == "Y" ]]; then
HIDDEN_SELECTORS=("${HIDDEN_SELECTORS[@]}" "#tabbrowser-tabs") HIDDEN_SELECTORS=("${HIDDEN_SELECTORS[@]}" "#tabbrowser-tabs")
fi fi
echo -e "Do you want to hide main toolbar (address bar, back, forward, etc)? (y/N)" echo -n "Do you want to hide main toolbar (address bar, back, forward, etc)? (y/N) "
read -r input read -r input
if [[ ${input^^} == "Y" ]]; then if [[ ${input^^} == "Y" ]]; then
HIDDEN_SELECTORS=("${HIDDEN_SELECTORS[@]}" "#nav-bar") HIDDEN_SELECTORS=("${HIDDEN_SELECTORS[@]}" "#nav-bar")
@ -137,3 +137,5 @@ if (( ${#HIDDEN_SELECTORS[@]} > 0 )); then
visibility: collapse !important; visibility: collapse !important;
}" >> "$FIREFOX_PROFILE/chrome/userChrome.css" }" >> "$FIREFOX_PROFILE/chrome/userChrome.css"
fi fi
echo "Optional: Add $(cd "$ICON_DIR"; pwd) to your PATH to allowing launching the app from command line"