
- Added missing newline at EOF (bugreport:7347) git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17193 54d463be-8e91-2dee-dedb-b68131a5f0ec
23 lines
511 B
Bash
Executable File
23 lines
511 B
Bash
Executable File
#!/bin/sh
|
|
#source var/function
|
|
. ./function.sh
|
|
echo "My pkg path is $PKG_PATH"
|
|
|
|
check_inst_right
|
|
read -p "WARNING: This target dis experimental. Press Ctrl+C to cancel or Enter to continue." readEnterKey
|
|
case $1 in
|
|
'bin')
|
|
echo "Starting binary cleanup"
|
|
rm -rf $PKG_PATH/bin/*
|
|
echo "Binary file was deleted"
|
|
;;
|
|
'all')
|
|
echo "Starting uninstalling "
|
|
rm -rf $PKG_PATH
|
|
rm -rf /usr/bin/$PKG
|
|
echo "Uninstallation succed"
|
|
;;
|
|
'*')
|
|
echo "Please enter a target usage './uninstall { all | bin }'"
|
|
esac
|