From 04b8d67bbab5c525fa6da68e42053c29aa9326a0 Mon Sep 17 00:00:00 2001 From: Dan Johansen Date: Thu, 25 Feb 2021 14:08:22 +0100 Subject: [PATCH] always reclone profiles, to ensure they are always up to date --- manjaro-arm-installer | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/manjaro-arm-installer b/manjaro-arm-installer index 43a620c..aae8bca 100755 --- a/manjaro-arm-installer +++ b/manjaro-arm-installer @@ -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 - 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 + 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 }