Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
Merge pull request #173 from lots0logs/master
Browse files Browse the repository at this point in the history
update testing script
  • Loading branch information
faidoc committed Apr 12, 2014
2 parents c156591 + fffe3d1 commit 8f34a88
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions scripts/testing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ if ! [ -f "${previous}" ]; then
else
pacman -Sy git grub os-prober f2fs-tools --noconfirm --needed;
fi
# Test different font, GNOME default is :-/
su -c "gsettings set org.gnome.desktop.interface font-name 'Lato'" antergos
# Enable kernel modules and other services
if [[ "${vbox_chk}" == "VirtualBox" ]] && [ -d "${uefi}" ]; then
echo "VirtualBox detected. Checking kernel modules and starting services."
Expand All @@ -41,30 +39,21 @@ if ! [ -f "${previous}" ]; then
git clone https://github.com/Antergos/Cnchi.git cnchi;
fi
cd /usr/share/cnchi
echo "Switching to testing branch..."
git checkout testing;

else
echo "Previous testing setup detected, skipping downloads"
# Check for changes on github since last time script was executed
# Update Cnchi with latest testing code
echo "Removing existing Cnchi..."
rm -R /usr/share/cnchi;
cd /usr/share;
echo "Getting latest version of Cnchi from testing branch..."
# Check commandline arguments to choose repo
if [ "$1" = "-d" ] || [ "$1" = "--dev-repo" ]; then
git clone https://github.com/"$2"/Cnchi.git cnchi;
else
git clone https://github.com/Antergos/Cnchi.git cnchi;
fi
cd /usr/share/cnchi
echo "Switching to testing branch..."
git checkout testing;
git pull origin master;
fi

# Start Cnchi with appropriate options
echo "Starting Cnchi..."
# Are we using an alternate PKG cache?
# TODO Remove this nonsense and use proper command argument processing
if [ "$1" != "-d" ] && [ "$1" != "--dev-repo" ] && [ "$1" != "" ]; then
if [ "$1" = "-c" ] || [ "$1" = "--cache" ]; then
if [ "$2" != "" ]; then
Expand All @@ -83,4 +72,4 @@ else
cnchi -d -v -p /usr/share/cnchi/data/packages.xml & exit 0;
fi

exit 1;
exit 1;

0 comments on commit 8f34a88

Please sign in to comment.