<commit_before>#!/bin/bash

##Check for git
git --version
OUT=$?

Boot_install () {
   echo "Copying script to init.d"
   cp splashscreen.sh /etc/init.d/
   echo "Update-rc.d splashscreen.sh"
   update-rc.d splashscreen.sh defaults
   echo "Please do: sudo shutdown -r now"
}

Update () {
##Check for git
git --version
OUT=$?
echo "Updating images and script"
if [ $OUT == 0 ]; then
   echo "Updating with git"
   git pull --rebase https://github.com/sur0x/retropiesplashscreen.git
elif [ $OUT == 127 ]; then
   echo "Updating without git"
   wget --no-check-certificate -qO tmp.zip https://github.com/sur0x/retropiesplashscreen/archive/master.zip
   unzip -o tmp.zip
   mv retropisplashscreen-master/* .
   rm -rf  retropisplashscreen-master/
   rm tmp.zip
fi
cp -r splashscreens/ /home/pi/RetroPie-Setup/supplementary/
}

####
PS3='Select the Option: '<commit_msg>rsync instead mv<commit_after>#!/bin/bash

Boot_install () {
   echo "Copying script to init.d"
   cp splashscreen.sh /etc/init.d/
   echo "Update-rc.d splashscreen.sh"
   update-rc.d splashscreen.sh defaults
   echo "Please do: sudo shutdown -r now"
}

Update () {
##Check for git
git --version > /dev/null
OUT=$?
echo "Updating images and script"
if [ $OUT == 0 ]; then
   echo "Updating with git"
   git pull --rebase https://github.com/sur0x/retropiesplashscreen.git
elif [ $OUT == 127 ]; then
   echo "Updating without git"
   wget --no-check-certificate -qO tmp.zip https://github.com/sur0x/retropiesplashscreen/archive/master.zip
   unzip -o tmp.zip
   rsync -a retropiesplashscreen-master/* .
   rm -rf  retropiesplashscreen-master/
   rm tmp.zip
fi
cp -r splashscreens/ /home/pi/RetroPie-Setup/supplementary/
}

####
PS3='Select the Option: '
{'fraction_non_alphanumeric': 0.13453698311007573, 'fraction_numerical': 0.008153756552125802, 'mean_word_length': 3.295, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4961889', 'n_tokens_mistral': 645, 'n_tokens_neox': 615, 'n_words': 166}