wok view get-pcem-roms/stuff/get-pcem-roms @ rev 24091

get-pcem-roms: version less
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 17 19:56:00 2021 +0000 (2021-07-17)
parents e6a4cd87fdcb
children 01737061adb0
line source
1 #!/bin/sh
3 WEB_SITE="https://github.com/BaRRaKudaRain/PCem-ROMs"
4 ARCHIVE="https://github.com$(wget -O - $WEB_SITE/releases | sed '/.tar.gz/!d;s|.*href="||;s|" .*||;q')"
6 mv -f /home/$USER/.pcem/roms /home/$USER/.pcem/roms-old ||
7 mkdir -p /home/$USER/.pcem
8 wget -O - $ARCHIVE | tar xzf - -C /home/$USER/.pcem/
9 mv /home/$USER/.pcem/PCem-ROMs-* /home/$USER/.pcem/roms
10 chown -R $USER.users /home/$USER/.pcem