diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-10-04 14:35:58 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-10-04 14:35:58 +0000 |
commit | 346c041a5cf7ba6052a2b838f153db8e3120a173 (patch) | |
tree | f42881ae3d3a6ba4e74174862b44fa32bf1838fe | |
parent | b21e418b45f047616ef50403f7d235d3aa3b2265 (diff) |
Don't run/print install command when there's nothing to install.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3110 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-x | contrib/install_prereq | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/install_prereq b/contrib/install_prereq index 56463b4..dac0189 100755 --- a/contrib/install_prereq +++ b/contrib/install_prereq @@ -64,6 +64,9 @@ handle_debian() { esac echo "# Kernel source not found. Installing $kernel_package" fi + if [ "$extra_packs$kernel_package" = '' ]; then + return + fi $testcmd apt-get install -y $extra_packs $kernel_package } @@ -87,6 +90,9 @@ handle_rh() { echo "#" echo "# and then reboot to upgrade to the newly installed kernel." fi + if [ "$extra_packs$kernel_package" = '' ]; then + return + fi $testcmd yum install -y $extra_packs $kernel_package } |