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.
|
#!/bin/bash
|
|
|
|
source $HOME/.nextcloud
|
|
|
|
rm -rf /tmp/nextcloud.out
|
|
rm -rf /tmp/nextcloud.err
|
|
|
|
for i in "${!mappings[@]}"; do
|
|
echo "Syncing: $i"
|
|
nextcloudcmd -h -u "$NEXTCLOUD_USERNAME" -p "$NEXTCLOUD_PASSWORD" \
|
|
"${mappings[$i]}" "$i" >> /tmp/nextcloud.out 2>> /tmp/nextcloud.err
|
|
done
|
|
|
|
echo $(date '+%R') > $HOME/.cache/nextcloud-track
|
|
kill -59 $(pidof dwmblocks)
|
|
|
|
|