projects
/
scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Misc
[scripts.git]
/
archivepics.sh
diff --git
a/archivepics.sh
b/archivepics.sh
index
202d73c
..
82f3506
100755
(executable)
--- a/
archivepics.sh
+++ b/
archivepics.sh
@@
-28,6
+28,14
@@
[[ ${archive_size_min} ]] || archive_size_min=1048576 # 1Mb
[[ ${archive_size_min} ]] || archive_size_min=1048576 # 1Mb
+# if [[ -z $* ]] && [[ ${PHO_NOTE_1} ]]; then
+ # echo "$0 ${PHO_NOTE_1}"
+ # $0 ${PHO_NOTE_1}
+ # exit 0
+# fi
+
+export ARCHIVED_PICS="$*"
+
set -e
if [[ ! ${IMAGE_ARCHIVE_DIR} ]]; then
set -e
if [[ ! ${IMAGE_ARCHIVE_DIR} ]]; then
@@
-60,7
+68,7
@@
for i in "$@"; do
if [[ -f ${base}.jpg ]]; then ref=${base}.jpg; fi
if [[ -f ${base}.jpeg ]]; then ref=${base}.jpeg; fi
if [[ -f ${base}.jpg ]]; then ref=${base}.jpg; fi
if [[ -f ${base}.jpeg ]]; then ref=${base}.jpeg; fi
- echo "ref=${ref}"
+
#
echo "ref=${ref}"
if [[ -f ${ref} ]]; then
if [[ -f ${ref} ]]; then