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

fix: prevent script from being executed during conditional checks #17

Closed
wants to merge 1 commit into from

Conversation

vprashar2929
Copy link
Contributor

@vprashar2929 vprashar2929 commented Oct 2, 2024

This commit addresses an issue where the custom script could inadvertently be executed as part of a conditional check, leading to unintended behavior.

@vprashar2929
Copy link
Contributor Author

cc: @displague

@vprashar2929
Copy link
Contributor Author

I didn't see #16 I will revert the docs changes from this PR

This commit addresses an issue where the custom script could
inadvertently be executed as part of a conditional check, leading to unintended behavior.

Signed-off-by: Vibhu Prashar <vibhu.sharma2929@gmail.com>
chmod 0700 $CUSTOM_SCRIPT
echo "Running custom user script"
$CUSTOM_SCRIPT
./$CUSTOM_SCRIPT
Copy link
Member

Choose a reason for hiding this comment

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

When I try this on my machine, I get output like this:

./$CUSTOM_SCRIPT
bash: .//home/cprivitere/custom_script.rzk23.sh: No such file or directory

Shouldn't it be $CUSTOM_SCRIPT?

@displague
Copy link
Member

displague commented Oct 2, 2024

Moved to #18

(I prematurely merged #14 after thinking #18's change was already applied there)

@displague displague closed this Oct 2, 2024
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.

3 participants