diff options
Diffstat (limited to 'manualPorts')
-rwxr-xr-x | manualPorts/lastVersion.sh | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/manualPorts/lastVersion.sh b/manualPorts/lastVersion.sh index b9d1754..2be942f 100755 --- a/manualPorts/lastVersion.sh +++ b/manualPorts/lastVersion.sh @@ -45,8 +45,19 @@ then echo "${base}/$1/lastVersion.sh"' gibt keine Version zurück!' fi fi -lastVersion="$(grep "\(^\|\s\)version=" /usr/{src/ports/manualPorts,ports/*}/$1/Pkgfile | cut -d = -f 2 | sort -V | tail -n1)" -myVersion="$(grep "\(^\|\s\)version=" /usr/src/ports/manualPorts/$1/Pkgfile | cut -d = -f 2 | sort -V | tail -n1)" +lastVersion=$( + grep "\(^\|\s\)version=" /usr/{src/ports/manualPorts,ports/*}/$1/Pkgfile \ + | cut -d = -f 2 \ + | grep -vxF svn \ + | sort -V \ + | tail -n1 +) +myVersion=$( + grep "\(^\|\s\)version=" /usr/src/ports/manualPorts/$1/Pkgfile \ + | cut -d = -f 2 \ + | sort -V \ + | tail -n1 +) if [ -n "${newestVersion}" ] && \ [ ! "${newestVersion}" == "${myVersion}" ] |