From a6d2682300d5dd42d41564e39c1afcdf11be7101 Mon Sep 17 00:00:00 2001 From: Ld-Hagen <34414986+Ld-Hagen@users.noreply.github.com> Date: Sat, 25 Sep 2021 22:48:13 +0300 Subject: [PATCH] Formatting --- install.sh | 28 ++++++++++++++-------------- scripts/fix-opera.sh | 4 ++-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/install.sh b/install.sh index fa5d638..0f93463 100755 --- a/install.sh +++ b/install.sh @@ -17,19 +17,19 @@ create_hook () printf ' 0. Other\n' while read -p "Your choice: " DISTRIB; do case $DISTRIB in - "1" ) - cp -f $SCRIPT_PATH/scripts/99fix-opera $INSTALL_PATH - ln -sf $INSTALL_PATH/99fix-opera /etc/apt/apt.conf.d/ - break;; - "2" ) - cp -f $SCRIPT_PATH/scripts/fix-opera.hook $INSTALL_PATH /usr/share/libalpm/hooks - ln -sf $INSTALL_PATH/fix-opera.hook /usr/share/libalpm/hooks/ - break;; - "0" ) - printf "Autostart for your Linux distro is currently unsupported\n" - break;; - * ) - continue;; + "1" ) + cp -f $SCRIPT_PATH/scripts/99fix-opera $INSTALL_PATH + ln -sf $INSTALL_PATH/99fix-opera /etc/apt/apt.conf.d/ + break;; + "2" ) + cp -f $SCRIPT_PATH/scripts/fix-opera.hook $INSTALL_PATH /usr/share/libalpm/hooks + ln -sf $INSTALL_PATH/fix-opera.hook /usr/share/libalpm/hooks/ + break;; + "0" ) + printf "Autostart for your Linux distro is currently unsupported\n" + break;; + * ) + continue;; esac done } @@ -59,7 +59,7 @@ while read CREATE_ALIAS; do case $CREATE_ALIAS in "y" | "Y") echo "alias fix-opera='sudo ~root/.scripts/fix-opera.sh' # Opera fix HTML5 media" >> $USER_HOME/.bashrc - printf "Alias will be available after your next logon.\n" + printf "Alias \"fix-opera\" will be available after your next logon.\n" break;; "n" | "N") break;; diff --git a/scripts/fix-opera.sh b/scripts/fix-opera.sh index b893351..5fbf2f1 100755 --- a/scripts/fix-opera.sh +++ b/scripts/fix-opera.sh @@ -6,8 +6,8 @@ if [[ $(whoami) != "root" ]]; then fi if [[ $(uname -m) != "x86_64" ]]; then - printf 'This script is intended for 64-bit systems\n' - exit 1 + printf 'This script is intended for 64-bit systems\n' + exit 1 fi if ! which unzip > /dev/null; then