summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-07-01 17:06:54 +0200
committerDave Reisner <dreisner@archlinux.org>2011-07-01 21:52:24 +0200
commitb088a105a7aca2f725168393eaee4e6c19cec784 (patch)
treef7f172737738225523d8a3b706b16c3390fef2a3 /functions
parentff378318f68224e2568073faa364ad6a327416e8 (diff)
downloadmkinitcpio-b088a105a7aca2f725168393eaee4e6c19cec784.tar.gz
mkinitcpio-b088a105a7aca2f725168393eaee4e6c19cec784.tar.xz
function: fix whitespace errors
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'functions')
-rw-r--r--functions42
1 files changed, 21 insertions, 21 deletions
diff --git a/functions b/functions
index 136b281..806ed03 100644
--- a/functions
+++ b/functions
@@ -26,9 +26,9 @@ error() {
}
die() {
- error "$@"
- cleanup
- exit 1
+ error "$@"
+ cleanup
+ exit 1
}
get_dirname() {
@@ -205,22 +205,22 @@ add_module() {
}
_add_file() {
- # add a file to $BUILDROOT
- # $1: pathname on initcpio
- # $2: source on disk
- # $3: mode
+ # add a file to $BUILDROOT
+ # $1: pathname on initcpio
+ # $2: source on disk
+ # $3: mode
- (( $# == 3 )) || return $EINVAL
- [[ -e "$BUILDROOT$1" ]] && return $EEXIST
+ (( $# == 3 )) || return $EINVAL
+ [[ -e "$BUILDROOT$1" ]] && return $EEXIST
- (( QUIET )) || plain "adding file: %s" "$1"
- command install -Dm$3 "$2" "$BUILDROOT$1"
+ (( QUIET )) || plain "adding file: %s" "$1"
+ command install -Dm$3 "$2" "$BUILDROOT$1"
}
_add_dir() {
- # add a directory (with parents) to $BUILDROOT
- # $1: pathname on initcpio
- # $2: mode
+ # add a directory (with parents) to $BUILDROOT
+ # $1: pathname on initcpio
+ # $2: mode
(( $# == 2 )) || [[ "$1" == /?* ]] || return 1 # bad args
[[ -e "$BUILDROOT$1" ]] && return 0 # file exists
@@ -230,15 +230,15 @@ _add_dir() {
}
_add_symlink() {
- # add a symlink to $buildroot
- # $1: name on initcpio
- # $2: target of $1
+ # add a symlink to $buildroot
+ # $1: name on initcpio
+ # $2: target of $1
- (( $# == 2 )) || return $EINVAL
- [[ -L "$BUILDROOT$1" ]] && return $EEXIST
+ (( $# == 2 )) || return $EINVAL
+ [[ -L "$BUILDROOT$1" ]] && return $EEXIST
- (( QUIET )) || plain "adding symlink: %s -> %s" "$2" "$1"
- ln -s "$2" "$BUILDROOT$1"
+ (( QUIET )) || plain "adding symlink: %s -> %s" "$2" "$1"
+ ln -s "$2" "$BUILDROOT$1"
}
add_binary() {