summaryrefslogtreecommitdiff
path: root/client/client-updates/src/client-updates-news
blob: bc78e4ef23cce98b19b25da9ab25e73dde8da5ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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