提交 60f2d6c1 编写于 作者: D dlion

A simple uninstall script

上级 b128e058
#!/bin/sh
if [ $(id -u) -ne 0 ]; then
echo -e "* ERROR: User $(whoami) is not root, and does not have sudo privileges"
exit 1
fi
if [ ! -f "setup.py" ]; then
echo -e "* ERROR: Setup file doesn't exist"
exit 1
fi
python setup.py install --record install.record
for i in $(cat install.record); do
rm $i
done
echo -e "\n\n* SUCCESS: Uninstall complete."
rm install.record
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册