diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-05-04 00:10:58 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-05-12 15:30:32 +0200 |
commit | 9340f901fec092fde44c8322bb500c4d18f0f222 (patch) | |
tree | 2f0e9d75f535a6febbbaa2b78f78b7c6d084dda4 /mkinitcpio | |
parent | a4e770eb3c648f36c33bb8edc54fc7d356d87eff (diff) | |
download | mkinitcpio-9340f901fec092fde44c8322bb500c4d18f0f222.tar.gz mkinitcpio-9340f901fec092fde44c8322bb500c4d18f0f222.tar.xz |
remove unnecessary quoting/bracing
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'mkinitcpio')
-rwxr-xr-x | mkinitcpio | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -240,10 +240,10 @@ mkdir -p "$BUILDROOT/usr/lib/modules/$KERNELVERSION/kernel" # use preset $PRESET if [[ $PRESET ]]; then # allow absolute path to preset file, else resolve it - if [[ "${PRESET:0:1}" != '/' ]]; then + if [[ ${PRESET:0:1} != '/' ]]; then printf -v PRESET '%s/%s.preset' "$PRESETDIR" "$PRESET" fi - if [[ -f "$PRESET" ]]; then + if [[ -f $PRESET ]]; then # Use -b, -m and -v options specified earlier declare -a preset_mkopts preset_cmd (( QUIET )) || preset_mkopts+=(-v) @@ -298,7 +298,7 @@ if [[ $GENIMG ]]; then fi fi -if [[ ! -f "$CONFIG" ]]; then +if [[ ! -f $CONFIG ]]; then die "Config file does not exist: \`%s'" "$CONFIG" fi . "$CONFIG" @@ -416,9 +416,9 @@ trap ERR declare -i status=0 declare -a pipesave -if [[ "${GENIMG}" ]]; then +if [[ $GENIMG ]]; then msg "Creating $COMPRESSION initcpio image: %s" "$GENIMG" - [[ "$COMPRESSION" = xz ]] && COMPRESSION_OPTIONS+=" --check=crc32" + [[ $COMPRESSION = xz ]] && COMPRESSION_OPTIONS+=" --check=crc32" # write version stamp printf '%s' "$version" > "$BUILDROOT/VERSION" |