#16 Use DUPLICITY var from environment

closed
nobody
None
5
2011-03-01
2011-03-01
No

Please allow to set the path of duplicity from the environment.

Therefore please change the following line:
DUPLICITY="$(which duplicity 2>/dev/null)"
to
DUPLICITY="${DUPLICITY:-$(which duplicity 2>/dev/null)}"

This would allow to pass a specific instance to the script, like when you have it installed in ~/duplicity.

Discussion

  • ede

    ede - 2011-03-01
    • status: open --> closed
     
  • ede

    ede - 2011-03-01

    the which command will always use the first duplicity executable found in path. So instead of setting DUPLICITY reset PATH for the shell you are running duplicity in.

    e.g.
    $>PATH=~/:$PATH
    $>duply ...

    ede

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks