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

Notice with Git Bash #4

Open
mportizlunyov opened this issue Sep 20, 2023 · 6 comments
Open

Notice with Git Bash #4

mportizlunyov opened this issue Sep 20, 2023 · 6 comments
Labels
good first issue Good for newcomers potential enhancement Potential new feature or request; may or may not be implemented

Comments

@mportizlunyov
Copy link
Owner

mportizlunyov commented Sep 20, 2023

It is important to note that although the Update_Full-UNIX script is technically compatible with Git BASH, it will ultimately fail due to the fact that certain tools provided by GNUUtils or BusyBox are not present in windows, and git BASH does not provide them.

Using the tools that Windows provides by default to access content through HTTP(S) is being considered in order increase compatibility with Windows, but it is not currently a priority. Another consideration, as @2bitninja commented, is that Git Bash is not recommended for heavy scripting, and is intended more for running Git commands.

Be on the lookout for Update_Full-Windows!

@mportizlunyov mportizlunyov added good first issue Good for newcomers potential enhancement Potential new feature or request; may or may not be implemented labels Sep 20, 2023
@2bitninja
Copy link

Hello,
Interesting idea you have with the Update_Full-UNIX script. I think you have the wrong idea about git bash. Its only purpose is to run git commands. If you wan to use your scrip via git bash that is a bad idea, instead you can power shell. Microsoft has a tool to run BASH scripts in power shell. I know for a fact you can run BASH scripts on windows, and I think you run them in poershell terminal.

@mportizlunyov
Copy link
Owner Author

Hello, Interesting idea you have with the Update_Full-UNIX script. I think you have the wrong idea about git bash. Its only purpose is to run git commands. If you wan to use your scrip via git bash that is a bad idea, instead you can power shell. Microsoft has a tool to run BASH scripts in power shell. I know for a fact you can run BASH scripts on windows, and I think you run them in poershell terminal.

Thank you @2bitninja for expressing interest in my project and clarifying what Git Bash does!
However, when trying to look into running Bash scripts on PowerShell, it typically does so by opening a Windows Subsystem for Linux terminal, rather than a native Bash instance. With that, it is unable to access certain tools, such as Winget.
I will clarify in the original issue comment that Git Bash is not recommended for scripting.

@mportizlunyov mportizlunyov pinned this issue Oct 13, 2023
@2bitninja
Copy link

@mportizlunyov Maybe you should look into Ansible. Ansible just like SCCM, form Microsoft, it can manage Windows machines, as well as Linux. This way you will have a common language that will run on both platforms. Ansible can leverage BASH, Powershell, and Python scripts. This means you don't have to start all over again. You can also use it to manage docker containers.

@mportizlunyov
Copy link
Owner Author

mportizlunyov commented Oct 14, 2023

@mportizlunyov Maybe you should look into Ansible. Ansible just like SCCM, form Microsoft, it can manage Windows machines, as well as Linux. This way you will have a common language that will run on both platforms. Ansible can leverage BASH, Powershell, and Python scripts. This means you don't have to start all over again. You can also use it to manage docker containers.

Thank you @2bitninja ! I will seriously research and look into its implementation!

@2bitninja
Copy link

@mportizlunyov There is something I didn’t think about until after I posted yesterday. Ansable uses playbooks to run code. Well there are already playbooks that do what your trying to do with your bash script. Maybe you can leverage them.

@mportizlunyov
Copy link
Owner Author

@2bitninja I will certainly investigate! Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers potential enhancement Potential new feature or request; may or may not be implemented
Projects
None yet
Development

No branches or pull requests

2 participants