From 0da46a1e669d094d0ba54c6b877e04e0b48df0f4 Mon Sep 17 00:00:00 2001 From: Peter Eszlari Date: Tue, 2 Apr 2019 00:51:44 +0200 Subject: [PATCH] fix script --- code.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code.sh b/code.sh index 628e4a8..1718118 100755 --- a/code.sh +++ b/code.sh @@ -4,8 +4,10 @@ set -e FIRST_RUN="${XDG_CONFIG_HOME}/flatpak-vscode-first-run" -[ ! -f ${FIRST_RUN} ] && export WARNING_FILE="/app/share/vscode/flatpak-warning.txt" -touch ${FIRST_RUN} +if [ ! -f ${FIRST_RUN} ]; then + WARNING_FILE="/app/share/vscode/flatpak-warning.txt" + touch ${FIRST_RUN} +fi for D in /usr/lib/sdk/*; do [ -f "${D}/enable.sh" ] && . "${D}/enable.sh"