mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +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`
|
||||
COUNT=1
|
||||
TITLE=""
|
||||
|
||||
if ! [ -z $2 ] ; then
|
||||
TITLE=" - $2"
|
||||
fi
|
||||
|
||||
# XXX do a real three digit count...
|
||||
DIR="./- ${DATE}.00${COUNT}/"
|
||||
DIR="./- ${DATE}.00${COUNT}${TITLE}/"
|
||||
|
||||
while [ -e "$DIR" ] ; do
|
||||
COUNT=$((COUNT+1))
|
||||
DIR="./- ${DATE}.00${COUNT}/"
|
||||
DIR="./- ${DATE}.00${COUNT}${TITLE}/"
|
||||
done
|
||||
|
||||
|
||||
|
||||
echo "Creating directory: $DIR"
|
||||
mkdir "$DIR"
|
||||
echo "Creating directory: done."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user