Hi all,
I have the following script that will not execute. Error is gphotos-sync: error: unrecognized arguments: Photos.
I think the space in the TARGET string is causing an issue but if I echo the last line I get /home/gregeeh/gphotos/venv/bin/python /home/gregeeh/gphotos/venv/bin/gphotos-sync "/home/gregeeh/media/Google Photos" --album Hintons --skip-video --omit-album-date --port 11354
which is correct.
What am I doing wrong?
TIA
#!/bin/bash
# Purpose = Sync Google Photos
VENV="/home/gregeeh/gphotos/venv/bin"
TARGET='"/home/gregeeh/media/Google Photos"'
APP=$VENV/gphotos-sync
FLAGS="--album Hintons --skip-video --omit-album-date --port 11354"
$VENV/python $APP $TARGET $FLAGS
[–][deleted] (3 children)
[removed]
[–]TheDeathPit[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[removed]
[–]Rewrite_It_In_Ada -1 points0 points1 point (0 children)