diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-07-01 17:06:54 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-07-01 21:52:24 +0200 |
commit | b088a105a7aca2f725168393eaee4e6c19cec784 (patch) | |
tree | f7f172737738225523d8a3b706b16c3390fef2a3 | |
parent | ff378318f68224e2568073faa364ad6a327416e8 (diff) | |
download | mkinitcpio-b088a105a7aca2f725168393eaee4e6c19cec784.tar.gz mkinitcpio-b088a105a7aca2f725168393eaee4e6c19cec784.tar.xz |
function: fix whitespace errors
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rw-r--r-- | functions | 42 |
1 files changed, 21 insertions, 21 deletions
@@ -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() { |