Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
Fix a bug in the wrapper script
  • Loading branch information
Lukas Burgey committed Dec 1, 2021
2 parents d670a56 + df169cc commit 591b1f4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ export EGI_VO=<vo name>
source swift_finder
```

In addition flags can be passed to the tool, see:
Alternatively, flags can be passed to the tool. See the help:
```bash
source swift_finder --help
```

## How does all of this work?
rclone is configured to read parameters regarding the swift endpoint from environment variables.
The relevant variables are: `OS_STORAGE_URL`, `OS_AUTH_URL` and `OS_AUTH_TOKEN`.

By using `source` to call the swift finder, the environment variables are applied to the current shells environment.
Subsequent calls to rclone in the same shell can then use the environment variables.
2 changes: 1 addition & 1 deletion swift_finder
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# forward stdout to the user and eval stderr
exec 3>&1
echo $( { egiSwiftFinder $@ 1>&3; } 2>&1 )
eval $( { egiSwiftFinder $@ 1>&3; } 2>&1 )

0 comments on commit 591b1f4

Please sign in to comment.