Add trailing '/' to filepaths in sync_music.sh
This commit is contained in:
@ -2,13 +2,13 @@
|
|||||||
# Script to sync my Android phone's music library to the contents of my ~/media/music/ directory
|
# Script to sync my Android phone's music library to the contents of my ~/media/music/ directory
|
||||||
|
|
||||||
mountpoint="$HOME/mnt"
|
mountpoint="$HOME/mnt"
|
||||||
source="$HOME/media/music"
|
source="$HOME/media/music/"
|
||||||
destination="$mountpoint/Internal shared storage/Music"
|
destination="$mountpoint/Internal shared storage/Music/"
|
||||||
|
|
||||||
mkdir "$mountpoint"
|
mkdir "$mountpoint"
|
||||||
aft-mtp-mount "$mountpoint"
|
aft-mtp-mount "$mountpoint"
|
||||||
|
|
||||||
rsync --archive --delete "$source" "$destination"
|
rsync --archive --delete --info=progress2 "$source" "$destination"
|
||||||
|
|
||||||
sync
|
sync
|
||||||
fusermount -u "$mountpoint"
|
fusermount -u "$mountpoint"
|
||||||
|
Reference in New Issue
Block a user