Skip to content

Commit a36101c

Browse files
committed
Installs to ~/.local/share/code-server
1 parent 87d2513 commit a36101c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

install_helper.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ get_releases() {
77
}
88

99
linux_install() {
10-
bin_path=$HOME/.local/bin
11-
lib_path=$HOME/.local/lib
10+
bin_path=$HOME/.local/share/code-server/bin
11+
lib_path=$HOME/.local/share/code-server/lib
1212

1313
releases=$(get_releases)
1414
package=$(echo "$releases" | grep 'linux' | grep 'x86' | sed -E 's/.*"([^"]+)".*/\1/')
@@ -50,7 +50,9 @@ linux_install() {
5050
rm -rf -f $temp_path
5151

5252
if [ $bin_path != *"$PATH"* ]; then
53-
echo "-- WARNING: ~/.local/bin is not in your \$PATH"
53+
RED='\033[0;31m'
54+
NC='\033[0m' # No Color
55+
echo -e "${RED}-- WARNING: $bin_path is not in your \$PATH${NC}"
5456
fi
5557

5658
echo "-- Successfully installed code-server at $bin_path/code-server"

0 commit comments

Comments
 (0)