Skip to content

Commit 26a8f3f

Browse files
JenTing Hsiaoroboquat
JenTing Hsiao
authored andcommitted
Fix the shell error
return: can only `return' from a function or sourced script Signed-off-by: JenTing Hsiao <[email protected]>
1 parent ede6cac commit 26a8f3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/setup-google-adc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ GCLOUD_ADC_PATH="/home/gitpod/.config/gcloud/application_default_credentials.jso
1313
if [ ! -f "$GCLOUD_ADC_PATH" ]; then
1414
if [ -z "$GCP_ADC_FILE" ]; then
1515
echo "GCP_ADC_FILE not set, doing nothing."
16-
return;
16+
exit 0
1717
fi
1818
echo "$GCP_ADC_FILE" > "$GCLOUD_ADC_PATH"
1919
#echo "Set GOOGLE_APPLICATION_CREDENTIALS value based on contents from GCP_ADC_FILE"

0 commit comments

Comments
 (0)