tests/themes/run.sh: whitespace: sw=4

This commit is contained in:
Daniel Hahler 2017-08-20 22:53:51 +02:00 committed by actionless
parent e1da4b030f
commit 6e53143401
1 changed files with 10 additions and 10 deletions

View File

@ -7,8 +7,8 @@
set -e
if ! [ -f CMakeLists.txt ]; then
echo 'This should be run from the source directory (expected CMakeLists.txt).' >&2
exit 64
echo 'This should be run from the source directory (expected CMakeLists.txt).' >&2
exit 64
fi
source_dir="$PWD"
@ -32,14 +32,14 @@ cleanup() {
trap "cleanup" 0 2 3 15
for theme_file in themes/*/theme.lua; do
echo "==== Testing theme: $theme_file ===="
theme_name=${theme_file%/*}
theme_name=${theme_name##*/}
echo "==== Testing theme: $theme_file ===="
theme_name=${theme_file%/*}
theme_name=${theme_name##*/}
sed "s~default/theme~$theme_name/theme~g" "awesomerc.lua" > "$config_file"
sed "s~default/theme~$theme_name/theme~g" "awesomerc.lua" > "$config_file"
AWESOME_RC_FILE="$config_file" \
AWESOME_THEMES_PATH="$build_dir/themes" \
AWESOME_ICON_PATH="$PWD/icons" \
"$source_dir/tests/run.sh" themes/tests.lua
AWESOME_RC_FILE="$config_file" \
AWESOME_THEMES_PATH="$build_dir/themes" \
AWESOME_ICON_PATH="$PWD/icons" \
"$source_dir/tests/run.sh" themes/tests.lua
done