Skip to content

Commit 9665272

Browse files
Info about remote OS in IDE
1 parent de3f4c5 commit 9665272

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sagemaker_ssh_helper/sm-ssh-ide

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,13 @@ elif [[ "$1" == "get-studio-python-version" ]]; then
246246
$SM_STUDIO_PYTHON --version
247247

248248
elif [[ "$1" == "env-diagnostics" ]]; then
249+
if _is_centos; then
250+
echo "Operating system: CentOS/RHEL-based system detected"
251+
else
252+
echo "Operating system: Debian/Ubuntu-based system detected"
253+
fi
254+
255+
head -2 /etc/os-release || :
249256

250257
echo "System Python location: $(which python || echo 'Not found')"
251258
echo "System Python version: $(python --version || echo 'Not found')"

0 commit comments

Comments
 (0)