Skip to content

Commit ec38ad2

Browse files
committed
Verifica che sia stato passato u input
1 parent 1737a20 commit ec38ad2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.devcontainer/scripts/specific-version

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ set -e
55
cd "$(dirname "$0")/../.."
66

77
read -p 'Set Home Assistant version: ' -r version
8-
uv pip install --system --prefix "/home/vscode/.local/" --upgrade homeassistant=="$version"
8+
if [ ! -z "$version" ]; then
9+
uv pip install --system --prefix "/home/vscode/.local/" --upgrade homeassistant=="$version"
10+
else
11+
echo "No version specified, aborting."
12+
fi

0 commit comments

Comments
 (0)