add addtheme.sh, updated instructions, make scripts run from outside of themes directory

This commit is contained in:
Rasmus Steinke 2015-12-30 10:46:41 +01:00
parent e943205f93
commit d41b500117
3 changed files with 50 additions and 3 deletions

View file

@ -1,4 +1,8 @@
#!/usr/bin/env bash
currentdir="$(pwd)"
rofi_themes_dir="$(dirname $0)"
cd "${rofi_themes_dir}"
git submodule update --init
@ -24,7 +28,7 @@ do
IMAGE="Screenshots/${NAME}.png"
AUTHOR=$(getAuthor)
echo "# ${FILE}" >> README.md
if [ -n ${AUTHOR} ];
if [ ${AUTHOR} ];
then
echo "by ${AUTHOR}" >> README.md
fi
@ -47,5 +51,8 @@ do
echo "" >> README.md
done
git add README.md
cd "${currentdir}"