Fix misuse of indicateActivity
This commit is contained in:
@@ -5,7 +5,7 @@ function installMASApp() {
|
||||
local currentUser="`who am i | cut -d' ' -f1`"
|
||||
local appName="$1"
|
||||
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() {
|
||||
|
||||
@@ -9,7 +9,7 @@ function ensureRightAccess() {
|
||||
|
||||
function copyUtilityBinaries() {
|
||||
for file in ${_DIR}/../bin/*; do
|
||||
indicateActivity "Copying ${file##*/}" cp ${file} ${dstDir}
|
||||
indicateActivity -- "Copying ${file##*/}" cp ${file} ${dstDir}
|
||||
ensureRightAccess ${file}
|
||||
done
|
||||
}
|
||||
@@ -17,7 +17,7 @@ function copyUtilityBinaries() {
|
||||
function installDocopts() {
|
||||
local destPath='/usr/local/bin/docopts'
|
||||
[[ -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}
|
||||
chmod 755 ${destPath}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user