@@ -324,11 +324,11 @@ __bashrc_check() {
324
324
http://github.com/api/v2/json/commits/show/fnichol/bashrc/HEAD | \
325
325
json_val ' ["commit"]["committed_date"]' ) "
326
326
if [ " ${tip_date#* } " == " $last_commit_date " ] ; then
327
- [[ -z " $suppress " ]] && printf " -----> bashrc is up to date.\n"
327
+ [[ -z " $suppress " ]] && printf -- " -----> bashrc is up to date.\n"
328
328
return 0
329
329
else
330
330
[[ -z " $suppress " ]] && \
331
- printf " -----> bashrc has updates to download." && \
331
+ printf -- " -----> bashrc has updates to download." && \
332
332
printf " Use 'bashrc update' to get current.\n"
333
333
return 1
334
334
fi
@@ -344,11 +344,11 @@ __bashrc_check() {
344
344
(cd $prefix && super_cmd git --no-pager diff --quiet --exit-code \
345
345
--no-color master..origin/master > /dev/null)
346
346
if [[ " $? " -eq 0 ]] ; then
347
- [[ -z " $suppress " ]] && printf " -----> bashrc is up to date.\n"
347
+ [[ -z " $suppress " ]] && printf -- " -----> bashrc is up to date.\n"
348
348
return 0
349
349
else
350
350
[[ -z " $suppress " ]] && \
351
- printf " -----> bashrc has updates to download." && \
351
+ printf -- " -----> bashrc has updates to download." && \
352
352
printf " Use 'bashrc update' to get current.\n"
353
353
return 1
354
354
fi
@@ -398,7 +398,7 @@ __bashrc_update() {
398
398
[[ -z " $tar_cmd " ]] && \
399
399
printf " >>>> tar command not found on path, aborting.\n" && return 13
400
400
401
- printf " -----> Git not found, so downloading tarball to $prefix ...\n"
401
+ printf -- " -----> Git not found, so downloading tarball to $prefix ...\n"
402
402
super_cmd mkdir -p " $prefix "
403
403
curl -LsSf http://github.com/fnichol/bashrc/tarball/master | \
404
404
super_cmd ${tar_cmd} xvz -C${prefix} --strip 1
@@ -418,14 +418,14 @@ __bashrc_update() {
418
418
419
419
if [[ -n " $tarball_install " ]] ; then
420
420
421
- printf " -----> Determining version date from github api ...\n"
421
+ printf -- " -----> Determining version date from github api ...\n"
422
422
local tip_date=" $( curl -sSL \
423
423
http://github.com/api/v2/json/commits/show/fnichol/bashrc/HEAD | \
424
424
python -c ' import sys; import json; j = json.loads(sys.stdin.read()); print j["commit"]["committed_date"];' ) "
425
425
if [ " $? " -ne 0 ] ; then tip_date=" UNKNOWN" ; fi
426
426
super_cmd bash -c " (printf \" TARBALL $tip_date \" > \" ${prefix} /tip.date\" )"
427
427
__bashrc_reload
428
- printf " \n\n-----> bashrc was updated and reloaded.\n"
428
+ printf -- " \n\n-----> bashrc was updated and reloaded.\n"
429
429
else
430
430
431
431
local old_file=" /tmp/bashrc.date.$$ "
@@ -448,9 +448,9 @@ __bashrc_update() {
448
448
--abbrev-commit --date=relative $old_rev ..$new_rev )
449
449
printf " \n-----------------\n\n"
450
450
__bashrc_reload
451
- printf " \n\n-----> bashrc was updated and reloaded.\n"
451
+ printf -- " \n\n-----> bashrc was updated and reloaded.\n"
452
452
else
453
- printf " \n-----> bashrc is already up to date and current.\n"
453
+ printf -- " \n-----> bashrc is already up to date and current.\n"
454
454
fi
455
455
456
456
super_cmd rm -f " $old_file "
@@ -467,7 +467,7 @@ __bashrc_reload() {
467
467
bashrc_reload_flag=1
468
468
printf " \n" # give bashrc source line more prominence
469
469
source " ${bashrc_prefix:-/ etc/ bash} /bashrc"
470
- printf " -----> bashrc was reload at $( date +%F\ %T\ %z) .\n"
470
+ printf -- " -----> bashrc was reload at $( date +%F\ %T\ %z) .\n"
471
471
unset bashrc_reload_flag
472
472
}
473
473
@@ -868,7 +868,7 @@ maven_set_settings() {
868
868
fi
869
869
870
870
(cd ${HOME} /.m2 && ln -sf ./settings-${ext} .xml settings.xml)
871
- printf " -----> Activating maven settings file: ${HOME} /.m2/settings-${ext} .xml\n"
871
+ printf -- " -----> Activating maven settings file: ${HOME} /.m2/settings-${ext} .xml\n"
872
872
}
873
873
874
874
# #
@@ -1330,12 +1330,12 @@ if command -v homesick >/dev/null ; then
1330
1330
sed -e ' s|^\([a-zA-Z0-9_ -]\{1,\}\).*$|\1|' | xargs) "
1331
1331
1332
1332
for c in $castles ; do
1333
- printf " -----> Updating $c castle ...\n"
1333
+ printf -- " -----> Updating $c castle ...\n"
1334
1334
$( which homesick) pull " $c " --force
1335
1335
$( which homesick) symlink " $c " --force
1336
1336
done ; unset c
1337
1337
1338
- printf " -----> homesick castles [$castles ] are up to date.\n"
1338
+ printf -- " -----> homesick castles [$castles ] are up to date.\n"
1339
1339
}
1340
1340
alias hsu=__homesick_update
1341
1341
fi
0 commit comments