always reclone profiles, to ensure they are always up to date

This commit is contained in:
Dan Johansen 2021-02-25 14:08:22 +01:00
parent 1b9bee6118
commit 04b8d67bba
No known key found for this signature in database
GPG Key ID: 084A7FC0035B1D49
1 changed files with 4 additions and 11 deletions

View File

@ -104,17 +104,10 @@ show_elapsed_time(){
installer_getarmprofiles () {
info "Getting package lists ready for $DEVICE $EDITION edition..."
if [ -d "$TMPDIR/arm-profiles/" ];
then
cd $TMPDIR/arm-profiles
git fetch origin 1> /dev/null 2>&1
git reset --hard origin/master 1> /dev/null 2>&1
else
rm -rf $TMPDIR/arm-profiles
mkdir -p $TMPDIR
chmod 777 $TMPDIR
git clone https://gitlab.manjaro.org/manjaro-arm/applications/arm-profiles.git $TMPDIR/arm-profiles/ 1> /dev/null 2>&1
fi
}