summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-05-04 00:10:58 +0200
committerDave Reisner <dreisner@archlinux.org>2012-05-12 15:30:32 +0200
commit9340f901fec092fde44c8322bb500c4d18f0f222 (patch)
tree2f0e9d75f535a6febbbaa2b78f78b7c6d084dda4 /functions
parenta4e770eb3c648f36c33bb8edc54fc7d356d87eff (diff)
downloadmkinitcpio-9340f901fec092fde44c8322bb500c4d18f0f222.tar.gz
mkinitcpio-9340f901fec092fde44c8322bb500c4d18f0f222.tar.xz
remove unnecessary quoting/bracing
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'functions')
-rw-r--r--functions8
1 files changed, 4 insertions, 4 deletions
diff --git a/functions b/functions
index 9d572fc..5956dc3 100644
--- a/functions
+++ b/functions
@@ -229,7 +229,7 @@ checked_modules() {
# modules.
# $@: arguments to all_modules
- if [[ -s "$MODULE_FILE" ]]; then
+ if [[ -s $MODULE_FILE ]]; then
grep -xFf "$MODULE_FILE" <(all_modules "$@")
return 1
else
@@ -360,7 +360,7 @@ add_file() {
[[ -f $src ]] || { error "file not found: \`%s'" "$src"; return 1; }
mode=${3:-$(stat -c %a "$src")}
- if [[ -z "$mode" ]]; then
+ if [[ -z $mode ]]; then
error "failed to stat file: \`%s'." "$src"
return 1
fi
@@ -390,7 +390,7 @@ add_binary() {
binary=$1
fi
- [[ -f "$binary" ]] || { error "file not found: \`%s'" "$1"; return 1; }
+ [[ -f $binary ]] || { error "file not found: \`%s'" "$1"; return 1; }
dest=${2:-$binary}
mode=$(stat -c %a "$binary")
@@ -403,7 +403,7 @@ add_binary() {
# resolve sodeps
regex='(/.+) \(0x[a-fA-F0-9]+\)'
while read line; do
- [[ "$line" =~ $regex ]] && sodep=${BASH_REMATCH[1]} || continue
+ [[ $line =~ $regex ]] && sodep=${BASH_REMATCH[1]} || continue
if [[ -f $sodep && ! -e $BUILDROOT$sodep ]]; then
if [[ ! -L $sodep ]]; then