Skip to content
Snippets Groups Projects
Commit a4545751 authored by Karim's avatar Karim
Browse files

Test if testing package is already installed + clean repository, update #18895

parent c6907284
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
source /root/envsetup/envsetup.conf
set -e
echo "Testing apt-get upgrade"
echo "Clean repository"
apt-get clean
#Testing if sl package exists and remove it
dpkg -l | awk '{print $2}' | grep '^sl$'
if [ "$?" -eq "0" ]; then
echo "Removing already installed testing package"
apt-get -y remove sl
fi
# Installation testing package sl
apt-get update && apt-get -y install sl && apt-get -y remove sl
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment