Skip to content

Commit

Permalink
qbittorrent - Minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyE123 committed May 4, 2017
1 parent b3665fd commit 7c27fa2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions qbittorrent-nox/qbittorrent-nox-settings-configurator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
# Author: TommyE123
# Publisher: http://www.htpcBeginner.com
# License: MIT License (refer to README.md for more details)
#

# DO NOT EDIT ANYTHING UNLESS YOU KNOW WHAT YOU ARE DOING.

echo -e $YELLOW'--->Configuring qBittorrent Settings...'$ENDCOLOR
echo
echo -e "$YELLOW--->Configuring qBittorrent Settings...$ENDCOLOR"

#Set username
sudo sed -i "s@UNAME@$UNAME@g" $APPSETTINGS || { echo -e $RED"Modifying UNAME in $APPSETTINGS file failed."$ENDCOLOR; exit 1; }
sudo sed -i "s@UNAME@$UNAME@g" $APPSETTINGS || \
{ echo -e $RED"Modifying UNAME in $APPSETTINGS file failed."$ENDCOLOR; exit 1; }
LOCALE=${LANG:0:5}
echo 'Locale found:' $LOCALE
#Set Locale
sudo sed -i "s@Locale=@Locale=$LOCALE@g" $APPSETTINGS || { echo -e $RED"Modifying LOCALE in $APPSETTINGS file failed."$ENDCOLOR; exit 1; }
sudo sed -i "s@Locale=@Locale=$LOCALE@g" $APPSETTINGS || \
{ echo -e $RED"Modifying LOCALE in $APPSETTINGS file failed."$ENDCOLOR; exit 1; }

0 comments on commit 7c27fa2

Please sign in to comment.