Skip to content

Commit

Permalink
refactor: use ternary op
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfaisal committed Aug 8, 2023
1 parent a6fe0ad commit ce3c226
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions scripts/launch-local-binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,7 @@ POLKADOT_BIN="$2"
PARACHAIN_BIN="$3"

# Check if TMPDIR is already set
if [ -z "$TMPDIR" ]; then
TMPDIR="/tmp/parachain_dev"
export TMPDIR
echo "TMPDIR was not set. Assigned value: $TMPDIR"
else
echo "TMPDIR is already set to: $TMPDIR"
fi
TMPDIR=${TMPDIR:-"/tmp/parachain_dev"}

[ -d "$TMPDIR" ] || mkdir -p "$TMPDIR"
ROOTDIR=$(git rev-parse --show-toplevel)
Expand Down

0 comments on commit ce3c226

Please sign in to comment.