Created
July 16, 2024 22:06
-
-
Save BuddhiLW/19f55649dcf7feb1fc52c3e77995aa0e to your computer and use it in GitHub Desktop.
Install nibbler from source
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 | |
cd $DOTFILES/gitthings/ | |
if ! [ -e $PWD/nibbler ]; then | |
git clone https://github.com/rooklift/nibbler.git | |
fi | |
NIBBLER_PATH="$PWD/nibbler" | |
path_file="/usr/local/bin/nibbler" | |
exec_nibbler_instructions(){ | |
echo "cd $NIBBLER_PATH/files/src/" >> $path_file | |
echo "electron ." >> $path_file | |
} | |
sudo rm -rf $path | |
sudo touch $path_file && $(echo "#!/usr/bin/bash" > "$path_file") | |
sudo chmod a+x $path_file | |
exec_nibbler_instructions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment