mirror of
https://github.com/elisspace/rtinst.git
synced 2026-10-06 17:16:22 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f1ec0ad3a | ||
|
|
b18b5718fe |
@@ -57,7 +57,7 @@ if [ -d /etc/rtinst ] && [ -z $branch ]; then
|
||||
if [ -z $branch ]; then
|
||||
branch=$(git describe --tags --exact-match)
|
||||
if [ ${branch:0:1} = v ]; then
|
||||
latest=$(basename "$(git ls-remote --tags https://github.com/arakasi72/rtinst.git | grep -o 'refs/tags/v.*' | sort -V | tail -1)")
|
||||
latest=$(curl -s "https://api.github.com/repos/arakasi72/rtinst/releases/latest" | awk -F '"' '/tag_name/{print $4}')
|
||||
if [ $branch != $latest ]; then
|
||||
echo "Updating from $branch to $latest"
|
||||
branch=$latest
|
||||
|
||||
+1
-1
@@ -555,7 +555,7 @@ apt-get -qqy install aptitude
|
||||
|
||||
echo "Upgrading packages" | tee -a $logfile
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
aptitude -q=5 upgrade >> $logfile 2>&1
|
||||
aptitude -q=5 -y upgrade >> $logfile 2>&1
|
||||
if ! [ $? = 0 ]; then
|
||||
echo "Problem upgrading packages. Run 'aptitude upgrade' successfully and rerun the script" && exit
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user