mirror of
https://github.com/ComradCollective/Comrad
synced 2024-11-11 13:10:45 +00:00
18 lines
352 B
Bash
Executable File
18 lines
352 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# funcs (mac doesnt have realpath)
|
|
realpath() {
|
|
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
|
|
}
|
|
pathdata="`realpath ~/comrad/data`"
|
|
echo "Removing $pathdata. You will permanently lose your users and contacts. Proceed? "
|
|
|
|
read -p "[y/N] " y_n
|
|
|
|
echo $y_n
|
|
|
|
if [ ! "$y_n" = "y" ]; then
|
|
echo "Cancelling"
|
|
else
|
|
rm -r $pathdata
|
|
fi |