Skip to content

Commit

Permalink
Fix unbound variables in the prepare script (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
NouemanKHAL authored Aug 4, 2023
1 parent 4ad8297 commit 82b7703
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ function cleanup() {
function main() {
trap cleanup EXIT

DOWNLOAD=${REFRESH_ASSETS:-"false"}

if [ ! -f ${SRCDIR}/lib/dogstatsd ] || [ ! -f ${SRCDIR}/lib/trace-agent ]; then
DOWNLOAD="true"
elif [ ! -f ${SRCDIR}/lib/agent ]; then
DOWNLOAD="true"
elif [ -n "${REFRESH_ASSETS:-}" ]; then
DOWNLOAD="true"
fi

if [ -n "${DOWNLOAD:-}" ]; then
if [ -n "${DOWNLOAD}" ]; then
# Delete the old ones
rm -f ${SRCDIR}/lib/agent
rm -f ${SRCDIR}/lib/dogstatsd
Expand Down

0 comments on commit 82b7703

Please sign in to comment.