Skip to content

Instantly share code, notes, and snippets.

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 Jun 27, 2019 — forked from usiusi360/yum-ps-script.sh
「yum ps all」と同様の結果を出力するスクリプト
View yum-ps-script.sh
#!/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
You can’t perform that action at this time.