whiskerz007 / proxmox_hassos_install

MIT License
881 stars 192 forks source link

Fixed: Unable to handle file extension 'zip' - No unnecessary package #130

Open fredrikscode opened 2 years ago

fredrikscode commented 2 years ago

Simply added: *"zip") gunzip -f -S .zip $FILE ;; (OBS: to the copy of the code in my repo, not as some sort of argument/parameter to Whiskerz's script)

No unnecessary package needed. I don't know why people recommended and even sent pull requests regarding installing unrar/unzip when gzip is baked in and doesn't need to be installed. Whisker even used gzip in the script.. :)

Clone from my repo if you're not comfortable adding it yourself. Feel free to submit an issue on my repo if the script needs an update.

kennsy99 commented 2 years ago

Simply added: *"zip") gunzip -f -S .zip $FILE ;;

No unnecessary package needed. I don't know why people recommended and even sent pull requests regarding installing unrar when gzip is baked in. Whisker even used gzip in the script.. :)

Clone from my repo if you're not comfortable adding it yourself. Feel free to submit an issue on my repo if the script needs an update.

Mine still says "unable to handle file extension "zip"" The code I copy and pasted is: root@pve:~# bash -c "$(wget -qLO - https://github.com/whiskerz007/proxmox_hassos_install/raw/master/install.sh) *"zip") gunzip -f -S .zip $FILE ;;" I'm sure noob with coding so maybe I did something wrong. I also tried this https://github.com/whiskerz007/proxmox_hassos_install/issues/113#issuecomment-857586202 solution but it didn't work either. Any ideas?

fredrikscode commented 2 years ago

Simply added: *"zip") gunzip -f -S .zip $FILE ;; No unnecessary package needed. I don't know why people recommended and even sent pull requests regarding installing unrar when gzip is baked in. Whisker even used gzip in the script.. :) Clone from my repo if you're not comfortable adding it yourself. Feel free to submit an issue on my repo if the script needs an update.

Mine still says "unable to handle file extension "zip"" The code I copy and pasted is: root@pve:~# bash -c "$(wget -qLO - https://github.com/whiskerz007/proxmox_hassos_install/raw/master/install.sh) *"zip") gunzip -f -S .zip $FILE ;;" I'm sure noob with coding so maybe I did something wrong. I also tried this https://github.com/whiskerz007/proxmox_hassos_install/issues/113#issuecomment-857586202 solution but it didn't work either. Any ideas?

Sorry for the late response. Yeah that's not it. Simply run this command instead of Whisker's command to install: bash -c "$(wget -qLO - https://github.com/fredrikscode/proxmox_hassos_install/raw/master/install.sh)"

This: *"zip") gunzip -f -S .zip $FILE ;; Is not someting you put as an argument to the script itself. It's in the code.

anderso commented 2 years ago

This fixed the issue for me.

sourcecodemage commented 1 year ago

I tried running frederikscode script, it doesn't seem to do anything. after I press enter, it gives the prompt with no other actions.

root@pve:~# bash -c "$(wget -qLO - https://github.com/fredrikscode/proxmox_hassos_install/raw/master/install.sh)" root@pve:~#