diff options
| author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-01-05 22:50:07 +0000 |
|---|---|---|
| committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-01-05 22:50:07 +0000 |
| commit | ce77b525169bcc20d841d728571d47dc69ca6862 (patch) | |
| tree | ab09561142a02143174de552e2291a2feefaff7a /src/jail-upgrade | |
| parent | 99ace5d5b81660af343d1b76a7e2f5c236635013 (diff) | |
| download | simplepkg-ce77b525169bcc20d841d728571d47dc69ca6862.tar.gz simplepkg-ce77b525169bcc20d841d728571d47dc69ca6862.tar.bz2 | |
new common functions: default_arch and default_version
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@81 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'src/jail-upgrade')
| -rwxr-xr-x | src/jail-upgrade | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jail-upgrade b/src/jail-upgrade index fffc099..0c3d236 100755 --- a/src/jail-upgrade +++ b/src/jail-upgrade @@ -26,8 +26,8 @@ function jail_upgrade { if [ "$SIMPLARET" == "simplaret" ]; then - VERSION="`cat $1/etc/slackware-version | awk '{ print $2 }' | sed -e 's/.0$//'`" - ARCH="`cat $1/etc/slackware-version | awk '{ print $3 }' | sed -e 's/(//' -e 's/)//'`" + VERSION="`default_version`" + ARCH="`default_arch`" if [ -z "$ARCH" ]; then ARCH="i386" |
