Skip to content

Instantly share code, notes, and snippets.

@mwleeds
Last active August 3, 2018 23:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwleeds/51bcf63989d3a5a2606b368c43df3474 to your computer and use it in GitHub Desktop.
Save mwleeds/51bcf63989d3a5a2606b368c43df3474 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -e
set -o xtrace
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
flatpak install -y --reinstall eos-apps org.kde.Knavalbattle
rm -f knavalbattle.flatpak
flatpak build-bundle /var/lib/flatpak/repo knavalbattle.flatpak org.kde.Knavalbattle eos3
ostree config set core.change-update-summary false
echo "with change-update-summary set to false:" >>uninstall-op-times.txt
echo "with change-update-summary set to false:" >>install-op-times.txt
for i in `seq 20`; do
{ time flatpak uninstall -y org.kde.Knavalbattle >/dev/null 2>&1 ; } |& grep "^real" >>uninstall-op-times.txt
{ time flatpak install -y knavalbattle.flatpak >/dev/null 2>&1 ; } |& grep "^real" >>install-op-times.txt
done
ostree config set core.change-update-summary true
echo "with change-update-summary set to true:" >>uninstall-op-times.txt
echo "with change-update-summary set to true:" >>install-op-times.txt
for i in `seq 20`; do
{ time flatpak uninstall -y org.kde.Knavalbattle >/dev/null 2>&1 ; } |& grep "^real" >>uninstall-op-times.txt
{ time flatpak install -y knavalbattle.flatpak >/dev/null 2>&1 ; } |& grep "^real" >>install-op-times.txt
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment