diff options
Diffstat (limited to 'client/client-updates/src/client-updates-news')
-rwxr-xr-x | client/client-updates/src/client-updates-news | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/client/client-updates/src/client-updates-news b/client/client-updates/src/client-updates-news new file mode 100755 index 0000000..bc78e4e --- /dev/null +++ b/client/client-updates/src/client-updates-news @@ -0,0 +1,14 @@ +#!/bin/sh + +# config +SRC=$(dirname $(readlink -f "$0")) + +. ${SRC}/client-updates.conf + +# Edit news.txt +nano "${UPDATES_DIR}"/release/news.txt + +# Commit if changed +cd "${UPDATES_DIR}" +git status | grep -q 'news.txt' && { git add release/news.txt; git commit -m 'Updating news.txt' > /dev/null; } +cd - > /dev/null |