set -e
-[[ ${FREEZE_DIR} ]] || FREEZE_DIR=${HOME}/.backups
+# The default directory does not start with a period, as it may be
+# huge and should not be "hidden" from the user.
+
+[[ ${FREEZE_DIR} ]] || FREEZE_DIR=${HOME}/freezer
if [[ ! -d ${FREEZE_DIR} ]]; then
echo "Can not find directory ${FREEZE_DIR}" >&2
fi
while [[ "$1" ]]; do
- real_path=$(realpath "$1")
+ real_path="$(realpath "$1")"
dir=$(basename "${real_path}")
path=$(dirname "${real_path}")
full_path="${path}/${dir}"