Initial commit from template
This commit is contained in:
28
.claude/skills/postgres-connect/detect-os.sh
Executable file
28
.claude/skills/postgres-connect/detect-os.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
# Erkennt das Betriebssystem und gibt es aus
|
||||
|
||||
OS_TYPE=$(uname -s)
|
||||
|
||||
case "$OS_TYPE" in
|
||||
"Darwin")
|
||||
echo "macos"
|
||||
;;
|
||||
"Linux")
|
||||
# Unterscheide zwischen verschiedenen Linux-Distributionen
|
||||
if [ -f /etc/alpine-release ]; then
|
||||
echo "alpine"
|
||||
elif [ -f /etc/debian_version ]; then
|
||||
echo "debian"
|
||||
elif [ -f /etc/redhat-release ]; then
|
||||
echo "redhat"
|
||||
else
|
||||
echo "linux"
|
||||
fi
|
||||
;;
|
||||
"MINGW"*|"MSYS"*|"CYGWIN"*)
|
||||
echo "windows"
|
||||
;;
|
||||
*)
|
||||
echo "unknown"
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user