From 5baccef497d45c7e62de523212193793bc08993b Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sat, 7 Nov 2020 20:03:41 +0000 Subject: [PATCH] sde-update-package: remove bashism Signed-off-by: Alejandro Mery --- bin/sde-update-package | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/sde-update-package b/bin/sde-update-package index 6c639cf..cc30eb4 100755 --- a/bin/sde-update-package +++ b/bin/sde-update-package @@ -23,15 +23,16 @@ . "$SDEROOT/lib/sde-package.in" update_usage() { - local progname=${0##*/} + local progname= + progname="$(echo ${0##*/} | tr - ' ')" cat <] [] [] +Usage: $progname [--location ] [] [] Updates a package (which is autodetected if you are on it) to a given version, or simply download and regenerate checksums. Using --location you are able to specify which will be the new download location for this update. - ${progname//-/ } [--no-location] --md5 (Alias: up) + $progname [--no-location] --md5 (Alias: up) Updates a set of packages based on a remote .md5 file Using --no-location you tell the tool to not assume the download location of the md5 file for the updates but keep their individual