fix shellcheck

This commit is contained in:
adam committed 2026-09-28 17:05:12 +00:00
1 parent 910b438686
commit 47808ffa17
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -567,7 +567,8 @@ command=$1; shift
case $command in
-h|--help|help) usage 0 ;;
-V|--version|version)
if [[ $TERRACTL_VERSION == "@"VERSION"@" ]]; then echo "terractl (development copy)"
# The build replaces the placeholder with a version number, which never contains '@'
if [[ $TERRACTL_VERSION == *@* ]]; then echo "terractl (development copy)"
else echo "terractl $TERRACTL_VERSION"; fi
exit 0 ;;
list) cmd_list; exit ;;