diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-12-05 19:41:53 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-12-05 19:42:24 +0300 |
commit | 3fedf4f432521b56b5f8040e5a8f3de0675dfc00 (patch) | |
tree | 17fa8e39b1ec818d55e67a85bb9b7afee2a45ea2 /bin/ncp-update | |
parent | 3896b7f5300226812dba383b1af5cdcaaa8b012f (diff) |
ncp-config: show changelog on updatesv0.41.6
Diffstat (limited to 'bin/ncp-update')
-rwxr-xr-x | bin/ncp-update | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/ncp-update b/bin/ncp-update index 54f6a23e..9456819c 100755 --- a/bin/ncp-update +++ b/bin/ncp-update @@ -17,6 +17,13 @@ grep -qP "v\d+\.\d+\.\d+" <<< "$VER" && { # check format echo "$VER" > /usr/local/etc/ncp-version echo "$VER" > /var/run/.ncp-latest-version + + # write changelog + git log --graph --oneline --decorate \ + --pretty=format:"[%D] %s" --date=short | \ + grep 'tag: v' | \ + sed '/HEAD ->\|origin/s|\[.*\(tag: v[0-9]\+\.[0-9]\+\.[0-9]\+\).*\]|[\1]|' | \ + sed 's|* \[tag: |[|' > /usr/local/etc/ncp-changelog } echo -e "NextCloudPi updated to version $VER" } |