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

Refactored env repo structure. #10

Merged
merged 5 commits into from
Nov 7, 2022
Merged

Conversation

asa1997
Copy link
Collaborator

@asa1997 asa1997 commented Nov 4, 2022

Fixed #4

__besman_echo_white "Removing dev environment for BeSman"
# cd $BESMAN_ENV_ROOT/$environment
git --git-dir=$BESMAN_ENV_ROOT/$environment/.git --work-tree=$BESMAN_ENV_ROOT/$environment status | grep -e "modified" -e "untracked"
if [[ "$?" == "0" ]]; then
Copy link

Choose a reason for hiding this comment

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

SC2181: Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.


ℹ️ Learn about @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

__besman_echo_violet "Dev environment for ${environment_name} created successfully"
else
__besman_echo_white "Removing existing version "
rm -rf $BESMAN_ENV_ROOT
Copy link

Choose a reason for hiding this comment

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

💬 13 similar findings have been found in this PR


SC2086: Double quote to prevent globbing and word splitting.


🔎 Expand here to view all instances of this finding
File Path Line Number
BeSman/0.0.1/besman-BeSman-dev-env.sh 35
BeSman/0.0.1/besman-BeSman-dev-env.sh 36
BeSman/0.0.1/besman-BeSman-dev-env.sh 36
BeSman/0.0.1/besman-BeSman-dev-env.sh 36
BeSman/0.0.1/besman-BeSman-dev-env.sh 36
BeSman/0.0.1/besman-BeSman-dev-env.sh 38
BeSman/0.0.1/besman-BeSman-dev-env.sh 42
BeSman/0.0.1/besman-BeSman-dev-env.sh 54
BeSman/0.0.1/besman-BeSman-dev-env.sh 54
BeSman/0.0.1/besman-BeSman-dev-env.sh 54

Showing 10 of 13 findings. Visit the Lift Web Console to see all.


ℹ️ Learn about @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

Copy link
Contributor

@sumodgeorge sumodgeorge left a comment

Choose a reason for hiding this comment

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

The changes looks good to me

@sumodgeorge sumodgeorge merged commit d3ee105 into Be-Secure:master Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants