all tabs
This commit is contained in:
1 parent
e9175bc139
commit
e5f034b394
1 file changed
+4
@@ -59,6 +59,7 @@ function import_files {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Extra Check - If file has been modified in the last 3 minutes, don't move it
|
||||||
if (( $(date +%s) - $(stat -c %Y "$LANDING_DIR/$file") < (6*3) )); then
|
if (( $(date +%s) - $(stat -c %Y "$LANDING_DIR/$file") < (6*3) )); then
|
||||||
echo "File $file modified in the last 3 minutes. Waiting for upload to complete"
|
echo "File $file modified in the last 3 minutes. Waiting for upload to complete"
|
||||||
continue
|
continue
|
||||||
@@ -70,6 +71,9 @@ function import_files {
|
|||||||
read -r sha256 _ < <(/usr/bin/sha256sum "$filepath")
|
read -r sha256 _ < <(/usr/bin/sha256sum "$filepath")
|
||||||
printf '%s | %s\n' "$sha256" "$filepath" | tee -a $TODAY_INGRESS
|
printf '%s | %s\n' "$sha256" "$filepath" | tee -a $TODAY_INGRESS
|
||||||
|
|
||||||
|
# Extracts Windows/Linux from $project_mount and sets the 'environment' vairable
|
||||||
|
# This changes the moving path depending if window or Linux
|
||||||
|
|
||||||
local environment="${project_mount#/mnt/}"
|
local environment="${project_mount#/mnt/}"
|
||||||
local environment="${environment%%/*}"
|
local environment="${environment%%/*}"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user