the update script could use a full file
Started by zxuiji




0 posts in this topic
zxuiji
Member


0
2 posts 2 threads Joined: Apr 2019
05-28-2019, 09:14 AM -
#1
I find manually entering those lines to be a pain so I made a script, not perfect but it normally does the job if you leave it inside a file called update.sh (for clarity) and run it, don't recall trying with bash but should work, if it doesn't then it's just sh
Code:
NXT=
REMOVE=1
Remove() {
    return $REMOVE
}
wget --content-disposition https://rpcs3.net/latest-appimage
for f in rpcs3-*_linux64.AppImage*; do
    if $(Remove); then
        echo Removing $NXT
        rm $NXT
    fi
    NXT=$f
    REMOVE=0
done
echo NXT = $NXT
ln -sf $NXT rpcs3.AppImage
ln -sf $NXT ~/Desktop/rpcs3.AppImage
chmod a+x $NXT
This post was last modified: 05-28-2019, 09:15 AM by zxuiji. Edit Reason: Overlooked a loop variable


Messages In This Thread
the update script could use a full file - by zxuiji - 05-28-2019, 09:14 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)