Colo: Fix lockfile syntax (#7432)

Logical AND for [ is -a, [[ is &&.
This commit is contained in:
Trent Nelson 2019-12-11 13:32:38 -07:00 committed by Dan Albert
parent bec5835289
commit 42f2b14a74
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ if [[ ! -f "${SOLANA_LOCK_FILE}" ]]; then
{
echo "export SOLANA_LOCK_USER=${SOLANA_USER}"
echo "export SOLANA_LOCK_INSTANCENAME=${INSTANCE_NAME}"
echo "[[ -v SSH_TTY -a -f \"${HOME}/.solana-motd\" ]] && cat \"${HOME}/.solana-motd\" 1>&2"
echo "[[ -v SSH_TTY && -f \"${HOME}/.solana-motd\" ]] && cat \"${HOME}/.solana-motd\" 1>&2"
} >&9
exec 9>&-
cat > /solana-scratch/id_ecdsa <<EOF