Fix misuse of indicateActivity

This commit is contained in:
Rezart Qelibari
2022-05-02 05:00:56 +02:00
parent f5a0a96c61
commit 5c8c5bc824
2 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ function installMASApp() {
local currentUser="`who am i | cut -d' ' -f1`" local currentUser="`who am i | cut -d' ' -f1`"
local appName="$1" local appName="$1"
local id="$2" local id="$2"
indicateActivity "Install ${appName} app" sudo -u ${currentUser} mas install ${id} indicateActivity -- "Install ${appName} app" sudo -u ${currentUser} mas install ${id}
} }
function configure_system() { function configure_system() {

View File

@@ -9,7 +9,7 @@ function ensureRightAccess() {
function copyUtilityBinaries() { function copyUtilityBinaries() {
for file in ${_DIR}/../bin/*; do for file in ${_DIR}/../bin/*; do
indicateActivity "Copying ${file##*/}" cp ${file} ${dstDir} indicateActivity -- "Copying ${file##*/}" cp ${file} ${dstDir}
ensureRightAccess ${file} ensureRightAccess ${file}
done done
} }
@@ -17,7 +17,7 @@ function copyUtilityBinaries() {
function installDocopts() { function installDocopts() {
local destPath='/usr/local/bin/docopts' local destPath='/usr/local/bin/docopts'
[[ -x ${destPath} ]] && return [[ -x ${destPath} ]] && return
indicateActivity 'Downloading docpts' curl --output ${destPath} -fsSL ${docopts_url} || return indicateActivity -- 'Downloading docpts' curl --output ${destPath} -fsSL ${docopts_url} || return
chown root:admin ${destPath} chown root:admin ${destPath}
chmod 755 ${destPath} chmod 755 ${destPath}
} }