mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
added directory description to sync-flash.sh script...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
bd89260de7
commit
94bd1af7be
@ -2,17 +2,21 @@
|
|||||||
|
|
||||||
DATE=`date +%Y%m%d`
|
DATE=`date +%Y%m%d`
|
||||||
COUNT=1
|
COUNT=1
|
||||||
|
TITLE=""
|
||||||
|
|
||||||
|
if ! [ -z $2 ] ; then
|
||||||
|
TITLE=" - $2"
|
||||||
|
fi
|
||||||
|
|
||||||
# XXX do a real three digit count...
|
# XXX do a real three digit count...
|
||||||
DIR="./- ${DATE}.00${COUNT}/"
|
DIR="./- ${DATE}.00${COUNT}${TITLE}/"
|
||||||
|
|
||||||
while [ -e "$DIR" ] ; do
|
while [ -e "$DIR" ] ; do
|
||||||
COUNT=$((COUNT+1))
|
COUNT=$((COUNT+1))
|
||||||
DIR="./- ${DATE}.00${COUNT}/"
|
DIR="./- ${DATE}.00${COUNT}${TITLE}/"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo "Creating directory: $DIR"
|
echo "Creating directory: $DIR"
|
||||||
mkdir "$DIR"
|
mkdir "$DIR"
|
||||||
echo "Creating directory: done."
|
echo "Creating directory: done."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user