Last active
August 3, 2018 23:40
-
-
Save mwleeds/51bcf63989d3a5a2606b368c43df3474 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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