From 676c2b07a97e1c95e2572de66a13aa61aa598805 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 14 Apr 2025 20:02:00 -0400 Subject: [PATCH] A couple of small improvements to install.sh. --- install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index db529973..46a721e6 100755 --- a/install.sh +++ b/install.sh @@ -1,12 +1,11 @@ -#!/bin/bash +#!/usr/bin/env bash #Basic install script for Fenrir. -read -p "This will install Fenrir. Press ctrl+C to cancel, or enter to continue." continue +read -rp "This will install Fenrir. Press ctrl+C to cancel, or enter to continue." # Fenrir main application install -m755 -d /opt/fenrirscreenreader cp -af src/* /opt/fenrirscreenreader -ln -fs /opt/fenrirscreenreader/fenrir-daemon /usr/bin/fenrir-daemon ln -fs /opt/fenrirscreenreader/fenrir /usr/bin/fenrir # tools install -m755 -d /usr/share/fenrirscreenreader/tools @@ -33,8 +32,9 @@ cp -af config/sound/template /usr/share/sounds/fenrirscreenreader/template # config if [ -f "/etc/fenrirscreenreader/settings/settings.conf" ]; then echo "Do you want to overwrite your current global settings? (y/n)" - read yn - if [ $yn = "Y" -o $yn = "y" ]; then + read -r yn + yn="${yn:0:1}" + if [[ "${yn^}" == "Y" ]]; then mv /etc/fenrirscreenreader/settings/settings.conf /etc/fenrirscreenreader/settings/settings.conf.bak echo "Your old settings.conf has been backed up to settings.conf.bak." install -m644 -D "config/settings/settings.conf" /etc/fenrirscreenreader/settings/settings.conf