Browse Source

sde-update-package: remove bashism

Signed-off-by: Alejandro Mery <amery@geeks.cl>
master
Alejandro Mery 4 years ago
parent
commit
5baccef497
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      bin/sde-update-package

+ 4
- 3
bin/sde-update-package

@ -23,15 +23,16 @@
. "$SDEROOT/lib/sde-package.in" . "$SDEROOT/lib/sde-package.in"
update_usage() { update_usage() {
local progname=${0##*/}
local progname=
progname="$(echo ${0##*/} | tr - ' ')"
cat <<EOT cat <<EOT
Usage: ${progname//-/ } [--location <url>] [<package>] [<version>]
Usage: $progname [--location <url>] [<package>] [<version>]
Updates a package (which is autodetected if you are on it) to a Updates a package (which is autodetected if you are on it) to a
given version, or simply download and regenerate checksums. given version, or simply download and regenerate checksums.
Using --location you are able to specify which will be the new Using --location you are able to specify which will be the new
download location for this update. download location for this update.
${progname//-/ } [--no-location] --md5 <url> (Alias: up)
$progname [--no-location] --md5 <url> (Alias: up)
Updates a set of packages based on a remote .md5 file Updates a set of packages based on a remote .md5 file
Using --no-location you tell the tool to not assume the download Using --no-location you tell the tool to not assume the download
location of the md5 file for the updates but keep their individual location of the md5 file for the updates but keep their individual

Loading…
Cancel
Save