This commit is contained in:
Andrew Hurley 2022-11-27 18:45:37 +11:00
parent cdfb0697c1
commit 92570c796e
1 changed files with 2 additions and 2 deletions

4
v2b.sh
View File

@ -70,10 +70,10 @@ else
LASTF="${FOLDER}" LASTF="${FOLDER}"
fi fi
USER=$(stat -c '%u' $BASH_SOURCE) USER="$(stat -c '%u' $BASH_SOURCE)"
INDEX="$((( ${LASTF#${FOLDER}} + 0 )))" INDEX="$((( ${LASTF#${FOLDER}} + 0 )))"
NEWFL="${FOLDER}$(printf "%05d" $((( ${INDEX} + 1 ))))" NEWFL="${FOLDER}$(printf "%05d" $((( ${INDEX} + 1 ))))"
TEMPF="$(sudo -u #${USER?err} mktemp -dt -p $PWD _XXXXXXXXXXXXXXX_)" TEMPF="$(sudo -u \#${USER?err} mktemp -dt -p $PWD _XXXXXXXXXXXXXXX_)"
for VOL in ${VOLUMES}; do for VOL in ${VOLUMES}; do
if [[ $REMOVE == "true" ]]; then if [[ $REMOVE == "true" ]]; then