Skip to content

Commit

Permalink
Fixed #7
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceliuice committed Jul 4, 2021
1 parent a737434 commit 2704ca4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sddm/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,15 @@ install() {
local theme="$1"

# Checking for root access and proceed if it is present
if [ "$UID" -eq "$ROOT_UID" ]; then
if [[ "$UID" -eq "$ROOT_UID" ]]; then
prompt -i "\n * Install Fluent${theme} in ${THEME_DIR}... "
[[ -d "${THEME_DIR}/Fluent${theme}" ]] && rm -rf "${THEME_DIR}/Fluent${theme}"
cp -rf "${REO_DIR}/Fluent" "${THEME_DIR}/Fluent${theme}"
cp -rf "${REO_DIR}/backgrounds/background${theme}.png" "${THEME_DIR}/Fluent${theme}/background.png"
sed -i "s/#0078D4/${theme_color}/g" "${THEME_DIR}/Fluent${theme}/Login.qml"
sed -i "s/#0078D4/${theme_color}/g" "${THEME_DIR}/Fluent${theme}/theme.conf"
if [[ "${theme}" != '' ]]; then
sed -i "s/#0078D4/${theme_color}/g" "${THEME_DIR}/Fluent${theme}/Login.qml"
sed -i "s/#0078D4/${theme_color}/g" "${THEME_DIR}/Fluent${theme}/theme.conf"
fi
sed -i "s/Fluent/Fluent${theme}/g" "${THEME_DIR}/Fluent${theme}/metadata.desktop"
# Success message
prompt -s "\n * All done!"
Expand Down

0 comments on commit 2704ca4

Please sign in to comment.