Commit 91c16f28 authored by Alexander Kernozhitsky's avatar Alexander Kernozhitsky Committed by pontaoski
Browse files

Fix compatibility of build_theme.sh with Dash

Summary:
The script build_sh didn't work with Dash necause of "[[". When running it, I got the following:

$ ./build_theme.sh
Installing into /home/gepardo/.local/share/themes/Breeze
./build_theme.sh: 111: [[: not found
cp: cannot create directory '': No such file or directory

Test Plan: After changing "[[" to "[", it worked fine and installed the theme

Reviewers: cblack, svuorela

Reviewed By: cblack, svuorela

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D24447
parent 72f5cd46
......@@ -108,5 +108,5 @@ else
fi
render_theme "${COLOR_SCHEME}" "${THEME_NAME}" "${INSTALL_TARGET}" "${COLOR_SCHEME_ROOT}/Breeze.colors"
[[ -z "${INSTALL_TARGET}" ]] && INSTALL_TARGET="${HOME}/.local/share/themes/${THEME_NAME}"
[ -z "${INSTALL_TARGET}" ] && INSTALL_TARGET="${HOME}/.local/share/themes/${THEME_NAME}"
cp -r assets/ "${INSTALL_TARGET}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment