X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Fclient_scripts%2FcPanel;h=70db56713daae30332fecfa031761fd926961e9e;hb=ed09d3e6cfee4750b6af971bc1baea940b5800ba;hp=c66c9c6c1eefbc1cbc885a2ab71078137d57d98a;hpb=85bef74346bc0e4e7caa63099c91b2e5d618b2f0;p=clearscm.git diff --git a/rc/client_scripts/cPanel b/rc/client_scripts/cPanel index c66c9c6..70db567 100755 --- a/rc/client_scripts/cPanel +++ b/rc/client_scripts/cPanel @@ -24,12 +24,13 @@ append_to_path /opt/cplint/bin append_to_path /root/bin # Find code! -codePath=$(dirname $(find ~/.vscode-server/bin -name code)) - -if [ -n "$codePath" ]; then - append_to_path $codePath -else - echo "Warning - unable to find code" +if [ -d ~/.vscode-server ]; then + codePath=$(dirname $(find ~/.vscode-server/bin -name code)) + if [ -n "$codePath" ]; then + append_to_path $codePath + else + echo "Warning - unable to find code" + fi fi # Intended to be used for root