fix params
This commit is contained in:
parent
b51452d53e
commit
d9093a275b
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
while read -r dir
|
||||
do
|
||||
last_file=$(ls -- "${dir}" -ht | head -n1)
|
||||
last_file=$(ls -ht -- "${dir}" | head -n1)
|
||||
last_file_time=$(stat -c %Y -- "${last_file}")
|
||||
last_file_time_formated=$(date -d "@${last_file_time}" +%Y%m%d%H%M.%S)
|
||||
touch -a -m -t "${last_file_time_formated}" -- "${dir}"
|
||||
|
|
Loading…
Reference in a new issue