Changeset 4825588 in wspkg-data


Ignore:
Timestamp:
Feb 28, 2019, 9:42:27 PM (3 years ago)
Author:
Ting-Wei Lan <lantw44@…>
Branches:
master
Children:
3cd5f55
Parents:
637ce02
Message:

Use ${var} instead of $var when referencing user-defined variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.sh

    r637ce02 r4825588  
    11#!/bin/sh
    22
    3 if [ -z "$WSPKGDIR" ]; then
     3if [ -z "${WSPKGDIR}" ]; then
    44    printf '\033[1;31mWSPKGDIR is not defined so I cannot build package for you :(\033[m\n'
    55    if [ -f "../wspkg/wspkg-mk/packages.mk" ]; then
     
    2424
    2525: "${MAKE:="make"}"
    26 printf '\033[1;33mRunning\033[m: %s -f "%s" WSPKGDIR="%s"' "${MAKE}" "$makefile" "$WSPKGDIR"
     26printf '\033[1;33mRunning\033[m: %s -f "%s" WSPKGDIR="%s"' "${MAKE}" "${makefile}" "${WSPKGDIR}"
    2727for arg in "$@"; do
    28     printf ' %s' "$arg"
     28    printf ' %s' "${arg}"
    2929done
    3030printf '\n\n'
    31 if "${MAKE}" -f "$makefile" WSPKGDIR="$WSPKGDIR" "$@"; then
     31if "${MAKE}" -f "${makefile}" WSPKGDIR="${WSPKGDIR}" "$@"; then
    3232    printf '\n\033[1;32mDone! ;-)\033[m\n'
    3333else
Note: See TracChangeset for help on using the changeset viewer.