Skip to content

Instantly share code, notes, and snippets.

View kotakanbe's full-sized avatar
🌴
I may be slow to respond.

Kota Kanbe kotakanbe

🌴
I may be slow to respond.
View GitHub Profile
@kotakanbe
kotakanbe / yum-ps-script.sh
Created June 27, 2019 12:04 — forked from usiusi360/yum-ps-script.sh
「yum ps all」と同様の結果を出力するスクリプト
#!/bin/bash
OS_FLAG=0
which rpm >/dev/null 2>&1 && OS_FLAG=1
which dpkg >/dev/null 2>&1 && OS_FLAG=2
if [ ${OS_FLAG} == "0" ]; then
echo "Unknown OS"; exit 1
fi