Commit 9e6b7ece authored by Baudouin Feildel's avatar Baudouin Feildel
Browse files

Fix conditionnal expression

parent 5c9dfaff
Pipeline #446 passed with stages
in 7 minutes and 33 seconds
......@@ -249,7 +249,7 @@ CURRENT_DEPENDENCY_TREE="$1"
current_ver=$(get_current_version ${1})
aur_ver=$(get_aur_version ${1})
ver_diff=$(vercmp "${current_ver}" "${aur_ver}")
if [[ ( "$current_ver" ) -a ( $ver_diff -eq 0 ) ]]
if [[ ( "$current_ver" ) && ( $ver_diff -eq 0 ) ]]
then
echo "Package is already up to date, no build needed"
echo "AUR Version: '$aur_ver'"
......@@ -258,7 +258,7 @@ then
create_dirs
save_package_from_cache "$1"
force_rebuild
elif [[ ( "$current_ver" ) -a ( $ver_diff -gt 0 ) ]]
elif [[ ( "$current_ver" ) && ( $ver_diff -gt 0 ) ]]
then
echo "Package in repository is newer than package in AUR"
echo "AUR Version: '$aur_ver'"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment