Commit bf023962 authored by PENGUEN Julien's avatar PENGUEN Julien
Browse files

correction bug recherche version

parent 5b7a00fe
......@@ -245,7 +245,7 @@ function_build_image()
list_jar=$(sort -r .temp | awk '{print $1}')
rm .temp
present=$(echo $list_jar| grep "^$version$")
present=$(echo $list_jar| grep "${version}")
if [ $? -eq 1 ]; then
......@@ -626,7 +626,7 @@ case ${sort_arg_keys[0]} in
curl -s ${ALADIN_URL}"/nph-aladin.pl?frame=downloading" | sed '/<!--/d'| sed '/last/!d' | cut -d">" -f3 | cut -d"<" -f1 | sed 's/\.jar//' | sed 's/Aladin//' >> .temp
list_jar=$(sort -r .temp | awk '{print $1}')
rm .temp
present=$(echo $list_jar| grep "^${sort_arg_values[0]}$")
present=$(echo $list_jar| grep "${sort_arg_values[0]}")
if [ $? -eq 1 ]; then
......@@ -945,14 +945,13 @@ case ${sort_arg_keys[0]} in
#################################
version=${sort_arg_values[0]}
#---------------------------------#
curl -s ${ALADIN_URL}"/nph-aladin.pl?frame=downloading" | sed '/Official version/!d' | cut -d">" -f3 | sed 's/v//' > .temp
curl -s ${ALADIN_URL}"/nph-aladin.pl?frame=downloading" | sed '/<!--/d'| sed '/last/!d' | cut -d">" -f3 | cut -d"<" -f1 | sed 's/\.jar//' | sed 's/Aladin//' >> .temp
list_jar=$(sort -r .temp | awk '{print $1}')
rm .temp
present=$(echo $list_jar| grep "^${sort_arg_values[0]}$")
present=$(echo $list_jar| grep "${version}")
if [ $? -eq 1 ]; then
echo ''
......@@ -979,7 +978,7 @@ case ${sort_arg_keys[0]} in
#---------------------------------#
list_jar=$(sudo docker images | awk '/^image_photos_montage_aladin-/{print $1}')
present=$(echo $list_jar| grep "^$version$")
present=$(echo $list_jar| grep "${version}")
if [ $? -eq 1 ]; then
......@@ -1119,7 +1118,7 @@ case ${sort_arg_keys[0]} in
#---------------------------------#
;;
"-rm"|"--remove=")
"-rm"|"--remove")
###################################################
# use: ./photos_montage_aladin.sh -rm OR --remove #
###################################################
......@@ -1128,7 +1127,7 @@ case ${sort_arg_keys[0]} in
list_image_version=$(sudo docker images | awk '/^image_photos_montage_aladin-/{print $1}')
present=$(echo $list_image_version| grep "^$version$")
present=$(echo $list_image_version| grep "${version}")
if [ $? -eq 1 ]; then
......
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