Skip to content

Commit 8e0e803

Browse files
committed
LPD-69089 alters the version selection prompt based on whether there are LXC projects present
1 parent d654f06 commit 8e0e803

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/cli/lec.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,16 @@ _removeWorktree() {
393393
_print_success "Project ${worktree_name} removed"
394394
}
395395
_selectLiferayRelease() {
396+
local promptMessage="Select a Liferay release"
397+
398+
if [ -d "${LXC_REPOSITORY_PATH}" ]; then
399+
promptMessage="${promptMessage} or LXC ID"
400+
fi
401+
396402
(
397403
_listReleases | sed "s,^,${C_GREEN}Release${C_NC} :: ,g"
398404
_listSaaSEnvironments | sed "s,^,${C_BLUE}LXC${C_NC} :: ,g"
399-
) | _select "Select a Liferay release or LXC ID" | awk -F ':: ' '{print $2}'
405+
) | _select "${promptMessage}" | awk -F ':: ' '{print $2}'
400406
}
401407
_isLXCVersion() {
402408
local lxc_version="${1}"

0 commit comments

Comments
 (0)