xrdbupdate: Change logging style

This commit is contained in:
Salt 2018-08-27 13:39:37 -05:00
parent 7534652fca
commit 8c4a092a48
1 changed files with 4 additions and 3 deletions

View File

@ -1,14 +1,15 @@
#!/bin/sh
name="$(basename $0)"
printf "[INFO] Loading X resource files\n"
if [ -r ~/.Xresources ]; then
xrdb ~/.Xresources
printf " [INFO] Loading .Xresources\n"
printf "$name: Loading .Xresources\n"
fi
for file in "${XDG_CONFIG_HOME:-$HOME/.config}"/xrdb/*.xresources; do
if ! [ -r "$file" ]; then
printf " [ERROR] Could not read .xresources file $file\n" 1>&2
printf "$name: Could not read .xresources file \"$file\"\n" 1>&2
else
printf " [INFO] Merging in $file\n"
printf "$name: Merging in $file\n"
xrdb -merge "$file"
fi
done