-if [ "$1" == "check" ]; then
- $ANSIBLE $TASKFILE --check --diff
-fi
-
-if [ "$1" == "list" ]; then
- echo "May symlink:"
- cd $HOME/dotfiles/files
- ls -p | grep -v /
+if [ "$1" == "reset" ]; then
+ read -n1 -p "Reset $TASKFILE? [y,N]" input
+ if [[ ! $input == "Y" && ! $input == "y" ]]; then
+ echo "Aborted by user"
+ exit 1
+ fi
+ echo "$EMPTY_TASKFILE" > $TASKFILE
+ echo ""