This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
pkg update && pkg upgrade | |
pkg i bash cmake make vim clang git binutils | |
mkdir SwitchUpdatePatcher | |
cd SwitchUpdatePatcher | |
curl -o nsp_update_patcher.sh https://gist.githubusercontent.com/Vixeliz/eb2f038d59beafff14e49b56c14e469c/raw/a88f012227fb703e5b0a009d01a6f7670f5ba3e4/nsp_update_patcher.sh | |
chmod +x nsp_update_patcher.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# check if command line argument is empty or not present | |
if [ -z $1 ]; then | |
basensp=$(ls -S *.nsp | head -1) | |
updatensp=$(ls -Sr *.nsp | head -1) | |
else | |
basensp=$1 | |
fi |