X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Fclient_scripts%2FcPanel;h=70db56713daae30332fecfa031761fd926961e9e;hb=74fc3dcf5806f0c3ecd1851fca1e7233d99d1d8e;hp=c66c9c6c1eefbc1cbc885a2ab71078137d57d98a;hpb=a95457ef4082b47eb41e1f794b88c0db3cd9ab76;p=clearscm.git diff --git a/rc/client_scripts/cPanel b/rc/client_scripts/cPanel old mode 100755 new mode 100644 index c66c9c6..70db567 --- 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