pull/106/head
Muhammad Atif Ali 2 years ago
parent dc007c9b88
commit d7cf338b18

@ -1,10 +1,15 @@
#!/usr/bin/env sh
# Convert templated variables to shell variables
# shellcheck disable=SC2269
LOG_PATH=${LOG_PATH}
# shellcheck disable=SC2034
BOLD='\033[0;1m'
# shellcheck disable=SC2059
printf "$${BOLD}Installing MODULE_NAME ...\n\n"
# Add code here
# Use varibles from the templatefile function in main.tf
# e.g. LOG_PATH, PORT, etc.

@ -4,7 +4,7 @@
"test": "bun test",
"fmt": "bun x prettier --plugin prettier-plugin-sh -w **/*.sh .sample/run.sh new.sh **/*.ts **/*.md *.md && terraform fmt **/*.tf .sample/main.tf",
"fmt:ci": "bun x prettier --plugin prettier-plugin-sh --check **/*.sh .sample/run.sh new.sh **/*.ts **/*.md *.md && terraform fmt -check **/*.tf .sample/main.tf",
"lint": "bun run lint.ts && bun x shellcheck -S error **/*.sh .sample/run.sh new.sh"
"lint": "bun run lint.ts && bun x shellcheck **/*.sh .sample/run.sh new.sh"
},
"devDependencies": {
"bun-types": "^1.0.3",

@ -1,8 +1,10 @@
#!/usr/bin/env sh
# shellcheck disable=SC2034
BOLD='\033[0;1m'
# Convert templated variables to shell variables
# shellcheck disable=SC2269
PORT=${PORT}
LOG_PATH=${LOG_PATH}
INSTALL_DIR=${INSTALL_DIR}
@ -10,6 +12,7 @@ INSTALL_DIR=${INSTALL_DIR}
# Create install directory if it doesn't exist
mkdir -p "$${INSTALL_DIR}"
# shellcheck disable=SC2059
printf "$${BOLD}Installing vscode-cli!\n"
# Download and extract code-cli tarball

Loading…
Cancel
Save