projects
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b6ac52d
)
Cosmetics.
author
Francois Fleuret
<francois@fleuret.org>
Sat, 17 Jun 2017 10:57:12 +0000
(12:57 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Sat, 17 Jun 2017 10:57:12 +0000
(12:57 +0200)
freeze-dir.sh
patch
|
blob
|
history
diff --git
a/freeze-dir.sh
b/freeze-dir.sh
index
375db4b
..
81f4a6d
100755
(executable)
--- a/
freeze-dir.sh
+++ b/
freeze-dir.sh
@@
-24,7
+24,10
@@
set -e
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
if [[ ! -d ${FREEZE_DIR} ]]; then
echo "Can not find directory ${FREEZE_DIR}" >&2
@@
-32,7
+35,7
@@
if [[ ! -d ${FREEZE_DIR} ]]; then
fi
while [[ "$1" ]]; do
fi
while [[ "$1" ]]; do
- real_path=
$(realpath "$1")
+ real_path=
"$(realpath "$1")"
dir=$(basename "${real_path}")
path=$(dirname "${real_path}")
full_path="${path}/${dir}"
dir=$(basename "${real_path}")
path=$(dirname "${real_path}")
full_path="${path}/${dir}"