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

Mobile scripts #6

Merged
merged 8 commits into from
Dec 17, 2018
Merged

Mobile scripts #6

merged 8 commits into from
Dec 17, 2018

Conversation

lorenzoPrimi
Copy link
Contributor

No description provided.

@@ -0,0 +1,23 @@
#!/bin/bash
source supported_languages
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would put this after the check to see if you are in the correct directory and for sure after the set -e so it exits when it fails to import it.

set -e

PROJDIR="../probe-android/"
cd $PROJDIR;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than changing directory, maybe it's best to use absolute paths?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would I do it? the cd is needed only for the -d check I guess

@@ -0,0 +1,26 @@
#!/bin/bash
source supported_languages
set -e
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar comments to above ^

exit 1
fi

cd ../translations
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you are changing directories again and making the assumption the current dir is called translations, without checking that it's true.

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

Successfully merging this pull request may close these issues.

None yet

2 participants