mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
prepare for upcoming composer changes by cleaning the vendor directory (#6986)
This commit is contained in:
committed by
Neil Lathwood
parent
561e368d32
commit
3a89820646
2
daily.sh
2
daily.sh
@@ -129,6 +129,7 @@ main () {
|
||||
exit
|
||||
elif [[ "$up" == "1" ]]; then
|
||||
# Update to Master-Branch
|
||||
git checkout vendor/ --quiet > /dev/null 2>&1
|
||||
old_ver=$(git show --pretty="%H" -s HEAD)
|
||||
status_run 'Updating to latest codebase' 'git pull --quiet' 'update'
|
||||
new_ver=$(git show --pretty="%H" -s HEAD)
|
||||
@@ -137,6 +138,7 @@ main () {
|
||||
fi
|
||||
elif [[ "$up" == "3" ]]; then
|
||||
# Update to last Tag
|
||||
git checkout vendor/ --quiet > /dev/null 2>&1
|
||||
old_ver=$(git describe --exact-match --tags $(git log -n1 --pretty='%h'))
|
||||
status_run 'Updating to latest release' 'git fetch --tags && git checkout $(git describe --tags $(git rev-list --tags --max-count=1))' 'update'
|
||||
new_ver=$(git describe --exact-match --tags $(git log -n1 --pretty='%h'))
|
||||
|
Reference in New Issue
Block a user