Skip to content

Commit

Permalink
Don't require apt-get for RPM build.
Browse files Browse the repository at this point in the history
This is based on #521
  • Loading branch information
kohsuke committed Jul 26, 2012
1 parent 80a3f1f commit 3ffb2f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rpm/build.sh
Expand Up @@ -4,7 +4,11 @@ if [ -z "$1" ]; then
exit 1
fi

sudo apt-get install -y rpm expect || true
which rpm > /dev/null 2>&1
if [ $? != 0 ]; then
sudo apt-get install -y rpm expect || true
fi


# figure out the version to package
cp "$1" $(dirname $0)/SOURCES/jenkins.war
Expand Down

0 comments on commit 3ffb2f8

Please sign in to comment.