File: diaspora-versions.sh

package info (click to toggle)
diaspora-installer 0.7.6.1+debian1
  • links: PTS, VCS
  • area: contrib
  • in suites: bullseye, buster, sid
  • size: 456 kB
  • sloc: sh: 895; makefile: 8
file content (8 lines) | stat: -rwxr-xr-x 430 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
#!/bin/sh

# Show current version of package
# This needs to be embedded inside main scripts, $2 is installed version
export installed_diaspora_version=`echo $2|cut -d+ -f1`
export installed_diaspora_major_version=`echo ${installed_diaspora_version} |cut -d. -f1,2`
export installed_diaspora_minor_version=`echo ${installed_diaspora_version} |cut -d. -f3,4`
export diaspora_minor_version=`echo ${diaspora_version} |cut -d. -f3,4`