This commit is contained in:
Muhammad Atif Ali 2026-01-05 12:20:27 +05:00
parent a1eed799aa
commit e1eda2ce65
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View File

@ -59,7 +59,7 @@ find_vscode_server() {
for dir in "$${server_dirs[@]}"; do for dir in "$${server_dirs[@]}"; do
if [ -d "$dir" ]; then if [ -d "$dir" ]; then
# Find the most recent server version # Find the most recent server version
local latest=$(ls -t "$dir" 2>/dev/null | head -1) local latest=$(ls -t "$dir" 2> /dev/null | head -1)
if [ -n "$latest" ] && [ -f "$dir/$latest/bin/code-server" ]; then if [ -n "$latest" ] && [ -f "$dir/$latest/bin/code-server" ]; then
echo "$dir/$latest/bin/code-server" echo "$dir/$latest/bin/code-server"
return 0 return 0