summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-03-28 13:48:28 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-03-28 13:48:28 +0200
commit62e6032908c0935752bb8258349691cf8985d7b4 (patch)
treeb69c63c0f23d8d9dda20ace5d79d929715b319bf /bin
parent3fa58765e39d64c03a69abc9b1bbcac014e18b9e (diff)
ct: Minor code cleanup
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ct13
1 files changed, 4 insertions, 9 deletions
diff --git a/bin/ct b/bin/ct
index 9b450ed..1403073 100755
--- a/bin/ct
+++ b/bin/ct
@@ -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"