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

parent 1b9bee61
......@@ -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
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment