home.sh update
This commit is contained in:
parent
da0bdf23c5
commit
18743884ce
1 changed files with 2 additions and 1 deletions
|
|
@ -52,7 +52,8 @@ function home() {
|
|||
current_date=$(date +%s)
|
||||
echo "Current date: $current_date"
|
||||
time_diff=$(($current_date-$last_update))
|
||||
echo "Time difference: $time_diff seconds."
|
||||
time_diff=$(($time_diff / 60 ))
|
||||
echo "Time difference: $time_diff minutes."
|
||||
if (( time_diff > 86400 )) || [ "$2" = "f" ]; then
|
||||
echo "Updating home configuration..."
|
||||
if git pull; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue