Skip to content

Commit 6840794

Browse files
committed
Streamline editor selection prompt in install scripts
- remove 'detected editors' line. should be just empty ├── README.md ├── install.ps1 └── install.sh
1 parent d13f5e1 commit 6840794

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎install.ps1‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ if ($availableEditors.Count -eq 0) {
4747
exit 1
4848
}
4949

50-
Write-Host "Detected editors:"
50+
Write-Host ""
5151
for ($i = 0; $i -lt $availableEditors.Count; $i++) {
5252
Write-Host "$($i + 1)) $($availableEditors[$i])"
5353
}
5454
Write-Host "a) All detected editors"
5555
Write-Host "q) Quit`n"
5656

57-
$choice = Read-Host "Select editor(s) to install CWC to"
57+
$choice = Read-Host "Select where to install CWC to"
5858

5959
if ($choice -eq 'q' -or $choice -eq 'Q') {
6060
Write-Host "Installation cancelled."

‎install.sh‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ if [ ${#AVAILABLE_EDITORS[@]} -eq 0 ]; then
7171
exit 1
7272
fi
7373

74-
echo "Detected editors:"
74+
echo ""
7575
for i in "${!AVAILABLE_EDITORS[@]}"; do
7676
echo "$((i+1))) ${AVAILABLE_EDITORS[$i]}"
7777
done
@@ -81,9 +81,9 @@ echo ""
8181

8282
# Handle interactive prompt even if script is piped via curl | bash
8383
if [ -c /dev/tty ]; then
84-
read -p "Select editor(s) to install CWC to: " choice < /dev/tty
84+
read -p "Select where to install CWC to: " choice < /dev/tty
8585
else
86-
read -p "Select editor(s) to install CWC to: " choice
86+
read -p "Select where to install CWC to: " choice
8787
fi
8888

8989
if [[ "$choice" == "q" || "$choice" == "Q" ]]; then

0 commit comments

Comments
 (0)