Skip to content

Commit f625699

Browse files
lint: shell style (codacy): use $() command substitution style
1 parent 8046a57 commit f625699

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.docker/run-examples.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Input:
66
# $1 Log string.
77
function log {
8-
echo -e "[`date`] ${1}"
8+
echo -e "[$(date)] ${1}"
99
}
1010

1111
root=$(dirname "${BASH_SOURCE}")/..

scripts/deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ numberOfParams=2
1010
# Input:
1111
# $1 Log string.
1212
function log {
13-
echo -e "[`date`] ${1}"
13+
echo -e "[$(date)] ${1}"
1414
}
1515

1616
function help {
@@ -34,7 +34,7 @@ function deploy {
3434
commitid=$(git log -n1 --format="%h")
3535
version=${1}
3636
full_version=${2}
37-
date=`date "+%Y/%m/%d %R"`
37+
date=$(date "+%Y/%m/%d %R")
3838

3939
perl -i -pe "s|\@\@mode-version\@\@|${version}|g" docs/RLangMode.txt
4040
perl -i -pe "s|\@\@pretty-version\@\@|${full_version}|g" docs/RLangMode.txt

scripts/utils/generator-util.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Input:
66
# $1 Log string.
77
function log {
8-
echo -e "[`date`] ${1}"
8+
echo -e "[$(date)] ${1}"
99
}
1010

1111
function help {

0 commit comments

Comments
 (0)