diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-03-28 13:48:28 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-03-28 13:48:28 +0200 |
commit | 62e6032908c0935752bb8258349691cf8985d7b4 (patch) | |
tree | b69c63c0f23d8d9dda20ace5d79d929715b319bf /bin | |
parent | 3fa58765e39d64c03a69abc9b1bbcac014e18b9e (diff) |
ct: Minor code cleanup
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ct | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -106,7 +106,7 @@ export PKG_ROOT if (( SILENT )) { GIT_SILENT_ARG=--quiet } else { - GIT_SILENT_ARG= + unset GIT_SILENT_ARG } self=$0 @@ -116,16 +116,12 @@ if (( SILENT )) { # The goal is not to override anything set by the user... # So, an alias should be safer than fiddling with $MAKEFLAGS alias make='make -s' - function info {} - function say {} - function clear_line {} + function info say clear_line {} PROGRESS=0 } if (( ! COLOURS )) { - c_info='' - c_reset='' - c_error='' + unset c_info c_reset c_error } if [[ ! -d $PKG_DIR ]] { @@ -718,8 +714,7 @@ function wrap { function pkg_add { check_valid $1 if [[ -d $PKG_DIR/$1 ]] { - info "Package '$1' is already installed!\n" - exit 1 + die "Package '$1' is already installed!\n" } info "$1: Retrieving package\n" |