Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit f5395c6

Browse files
author
Aleksi Salmela
committed
Create the autocompletion file only if tmc isn't native package.
1 parent df89b33 commit f5395c6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

scripts/stub.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ tmc_uninstall() {
231231
}
232232

233233
tmc_main() {
234+
local TMC_FLAGS=
235+
234236
if [ "${1-}" == "++internal-update" ]; then
235237
tmc_install_update
236238
fi
@@ -240,17 +242,15 @@ tmc_main() {
240242
exit
241243
fi
242244

243-
# check if this is first time running the tmc
244-
if [ ! -e "$(tmc_autocomplete_file)" ]; then
245-
tmc_update_autocomplete
246-
exit
247-
fi
248-
249-
local TMC_FLAGS=
250-
251245
# disable auto updates if tmc is from native package
252246
if [[ $TMC_NATIVE_PACKAGE == 1 ]]; then
253247
TMC_FLAGS="-d"
248+
else
249+
# check if this is first time running the tmc
250+
if [ ! -e "$(tmc_autocomplete_file)" ]; then
251+
tmc_update_autocomplete
252+
exit
253+
fi
254254
fi
255255

256256
#EMBED_UNIT_TESTS_SH

0 commit comments

Comments
 (0)