mirror of
https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git
synced 2025-12-29 03:23:00 +03:00
Formatting
This commit is contained in:
28
install.sh
28
install.sh
@@ -17,19 +17,19 @@ create_hook ()
|
|||||||
printf ' 0. Other\n'
|
printf ' 0. Other\n'
|
||||||
while read -p "Your choice: " DISTRIB; do
|
while read -p "Your choice: " DISTRIB; do
|
||||||
case $DISTRIB in
|
case $DISTRIB in
|
||||||
"1" )
|
"1" )
|
||||||
cp -f $SCRIPT_PATH/scripts/99fix-opera $INSTALL_PATH
|
cp -f $SCRIPT_PATH/scripts/99fix-opera $INSTALL_PATH
|
||||||
ln -sf $INSTALL_PATH/99fix-opera /etc/apt/apt.conf.d/
|
ln -sf $INSTALL_PATH/99fix-opera /etc/apt/apt.conf.d/
|
||||||
break;;
|
break;;
|
||||||
"2" )
|
"2" )
|
||||||
cp -f $SCRIPT_PATH/scripts/fix-opera.hook $INSTALL_PATH /usr/share/libalpm/hooks
|
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/
|
ln -sf $INSTALL_PATH/fix-opera.hook /usr/share/libalpm/hooks/
|
||||||
break;;
|
break;;
|
||||||
"0" )
|
"0" )
|
||||||
printf "Autostart for your Linux distro is currently unsupported\n"
|
printf "Autostart for your Linux distro is currently unsupported\n"
|
||||||
break;;
|
break;;
|
||||||
* )
|
* )
|
||||||
continue;;
|
continue;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
@@ -59,7 +59,7 @@ while read CREATE_ALIAS; do
|
|||||||
case $CREATE_ALIAS in
|
case $CREATE_ALIAS in
|
||||||
"y" | "Y")
|
"y" | "Y")
|
||||||
echo "alias fix-opera='sudo ~root/.scripts/fix-opera.sh' # Opera fix HTML5 media" >> $USER_HOME/.bashrc
|
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;;
|
break;;
|
||||||
"n" | "N")
|
"n" | "N")
|
||||||
break;;
|
break;;
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ if [[ $(whoami) != "root" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $(uname -m) != "x86_64" ]]; then
|
if [[ $(uname -m) != "x86_64" ]]; then
|
||||||
printf 'This script is intended for 64-bit systems\n'
|
printf 'This script is intended for 64-bit systems\n'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! which unzip > /dev/null; then
|
if ! which unzip > /dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user