Skip to content

Commit 54552f5

Browse files
author
Debdut Chakraborty
committed
Using escaped quotes around eval's argument means it'll consider the
whlole string to be the command. Not good.
1 parent ab512e1 commit 54552f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deploy-essentials/main.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ info(){
4141
log(){
4242
# log command error info
4343
local msg
44-
msg="$(2>&1 eval \"$1\")"
44+
msg="$(2>&1 eval $1)"
4545
[ $? -ne 0 ] && \
4646
error "$msg" "$2" || \
4747
info "$msg" "$3"

0 commit comments

Comments
 (0)