Remove quotes from subshell call in bash script
Always no quotes for $() statement. We don't need quotes to hold blanks in result: # i=$(echo 1 2 3) # echo $i 1 2 3 # These quotes can make something wrong in some case: # i=$(echo '!') # # i="$(echo '!')" -bash: !: event not found # No real problem for current code, only to use a better code style. Change-Id: I84c23863e73684f0c22a90e447af69dec4789523 Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
This commit is contained in:
parent
a474130c8d
commit
585bff3b6a
@ -55,7 +55,7 @@ version() {
|
||||
|
||||
# Figure out where our directory is located
|
||||
if [ -z $OCTAVIA_REPO_PATH ]; then
|
||||
AMP_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
AMP_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||||
OCTAVIA_REPO_PATH=${OCTAVIA_REPO_PATH:-${AMP_DIR%/*}}
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user