Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: Sample README.md shell scripts are all on one line #78

Closed
ross-spencer opened this issue Jun 4, 2018 · 1 comment
Closed
Assignees

Comments

@ross-spencer
Copy link
Contributor

Scripts on the README.md page are mostly all on one line, e.g.

#!/bin/bash
cd /usr/lib/archivematica/automation-tools/
/usr/share/python/automation-tools/bin/python -m transfers.transfer --user <user> --api-key <apikey> --ss-user <user> --ss-api-key <apikey> --transfer-source <transfer_source_uuid> --config-file <config_file>

This becomes easier to scroll if we do something along these lines:

#!/bin/bash
cd /usr/lib/archivematica/automation-tools/
/usr/share/python/automation-tools/bin/python -m transfers.transfer --user <user> \
                                                                    --api-key <apikey> \
                                                                    --ss-user <user> \
                                                                    --ss-api-key <apikey> \
                                                                    --transfer-source <transfer_source_uuid> 
                                                                    --config-file <config_file>
@ross-spencer ross-spencer self-assigned this Jun 4, 2018
@sevein
Copy link
Member

sevein commented Jun 5, 2018

I find the following more readable:

#!/usr/bin/env bash

cd /usr/lib/archivematica/automation-tools/

/usr/share/python/automation-tools/bin/python \
    -m transfers.transfer \
    --user <user> \
    --api-key <apikey> \
    --ss-user <user> \
    --ss-api-key <apikey> \
    --transfer-source <transfer_source_uuid> \
    --config-file <config_file>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants