Skip to content

update install.sh#1

Merged
nikandfor merged 8 commits intomainfrom
nikandfor/compatible_install
Nov 17, 2022
Merged

update install.sh#1
nikandfor merged 8 commits intomainfrom
nikandfor/compatible_install

Conversation

@nikandfor
Copy link
Copy Markdown
Contributor

Checked the script by shellcheck.

Changed chmod; mv to install. chmod can fail if +x mode is disabled for tmp directory.

@nikandfor nikandfor force-pushed the nikandfor/compatible_install branch from c393da9 to 4bad1df Compare November 14, 2022 12:21
@nikandfor nikandfor requested a review from rohitpaulk November 14, 2022 16:07
Comment thread install.sh Outdated
Comment thread install.sh Outdated
Comment thread install.sh
@nikandfor
Copy link
Copy Markdown
Contributor Author

nikandfor commented Nov 16, 2022

Added test workflow which runs the script with the dash shell. Dash is a minimalist POSIX-compliant shell. So no bash or anything specific features should pass the test.

Update:
Well, unsupported features in if treated as false, and script continues execution.
I'll add check for the binary installed in the end.

@nikandfor
Copy link
Copy Markdown
Contributor Author

sh is a link to dash in dockered ubuntu
image

@rohitpaulk
Copy link
Copy Markdown
Member

Excellent idea to add a test script 🙂

@nikandfor nikandfor force-pushed the nikandfor/compatible_install branch from c1c3ef0 to 51f93b6 Compare November 17, 2022 12:35
@nikandfor nikandfor merged commit f309518 into main Nov 17, 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

Development

Successfully merging this pull request may close these issues.

2 participants