mportizlunyov / update_full-unix

Update_Full [UNIX] is a Free & Open-Source script written with POSIX compliance that allows for simple, customisable, and full updating of a wide variety of popular UNIX distributions through their respective package managers.
GNU General Public License v3.0
5 stars 1 forks source link

Notice with Git Bash #4

Open mportizlunyov opened 1 year ago

mportizlunyov commented 1 year ago

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!

2bitninja commented 1 year ago

Hello, Interesting idea you have with the _UpdateFull-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 commented 1 year ago

Hello, Interesting idea you have with the _UpdateFull-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.

2bitninja commented 1 year ago

@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 commented 1 year ago

@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 commented 1 year ago

@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 commented 1 year ago

@2bitninja I will certainly investigate! Thank you.