set absolute path for snapshots
Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
parent
7f418686bb
commit
429a66c73e
|
@ -19,7 +19,7 @@ touch "${LOCK_FILE}"
|
||||||
|
|
||||||
# Increment name and save snapshot
|
# Increment name and save snapshot
|
||||||
SNAPSHOT_EXT=PNG
|
SNAPSHOT_EXT=PNG
|
||||||
SNAPSHOT_DIR=$HOME/snapshots
|
SNAPSHOT_DIR=/mnt/FunKey/snapshots
|
||||||
mkdir -p "${SNAPSHOT_DIR}"
|
mkdir -p "${SNAPSHOT_DIR}"
|
||||||
last=$(cd ${SNAPSHOT_DIR}; ls IMG_*.${SNAPSHOT_EXT} 2> /dev/null | tail -1 | sed 's/^IMG_0*\([0-9]\+\)\.'${SNAPSHOT_EXT}'$/\1/')
|
last=$(cd ${SNAPSHOT_DIR}; ls IMG_*.${SNAPSHOT_EXT} 2> /dev/null | tail -1 | sed 's/^IMG_0*\([0-9]\+\)\.'${SNAPSHOT_EXT}'$/\1/')
|
||||||
let last=${last}+1
|
let last=${last}+1
|
||||||
|
|
|
@ -19,7 +19,7 @@ touch "${LOCK_FILE}"
|
||||||
|
|
||||||
# Increment name and save snapshot
|
# Increment name and save snapshot
|
||||||
SNAPSHOT_EXT=PNG
|
SNAPSHOT_EXT=PNG
|
||||||
SNAPSHOT_DIR=$HOME/snapshots
|
SNAPSHOT_DIR=/mnt/FunKey/snapshots
|
||||||
mkdir -p "${SNAPSHOT_DIR}"
|
mkdir -p "${SNAPSHOT_DIR}"
|
||||||
last=$(cd ${SNAPSHOT_DIR}; ls IMG_*.${SNAPSHOT_EXT} 2> /dev/null | tail -1 | sed 's/^IMG_0*\([0-9]\+\)\.'${SNAPSHOT_EXT}'$/\1/')
|
last=$(cd ${SNAPSHOT_DIR}; ls IMG_*.${SNAPSHOT_EXT} 2> /dev/null | tail -1 | sed 's/^IMG_0*\([0-9]\+\)\.'${SNAPSHOT_EXT}'$/\1/')
|
||||||
let last=${last}+1
|
let last=${last}+1
|
||||||
|
|
Loading…
Reference in New Issue