Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
371 B

4 years ago
4 years ago
4 years ago
  1. #!/bin/bash
  2. source $HOME/.nextcloud
  3. rm -rf /tmp/nextcloud.out
  4. rm -rf /tmp/nextcloud.err
  5. for i in "${!mappings[@]}"; do
  6. echo "Syncing: $i"
  7. nextcloudcmd -h -u "$NEXTCLOUD_USERNAME" -p "$NEXTCLOUD_PASSWORD" \
  8. "${mappings[$i]}" "$i" >> /tmp/nextcloud.out 2>> /tmp/nextcloud.err
  9. done
  10. echo $(date '+%R') > $HOME/.cache/nextcloud-track
  11. kill -59 $(pidof dwmblocks)