diff --git a/bin/packages/git_status.py b/bin/packages/git_status.py
index 7b9c467c..19bf7769 100755
--- a/bin/packages/git_status.py
+++ b/bin/packages/git_status.py
@@ -129,17 +129,25 @@ def get_last_tag_from_local(verbose=False):
print('{}{}{}'.format(TERMINAL_RED, process.stderr.decode(), TERMINAL_DEFAULT))
return ''
-# Get last local tag
+# Get last remote tag
def get_last_tag_from_remote(verbose=False):
if verbose:
print('retrieving last remote tag ...')
#print('git ls-remote --tags')
+
process = subprocess.run(['git', 'ls-remote', '--tags'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if process.returncode == 0:
- res = process.stdout.split(b'\n')[-2].split(b'/')[-1].replace(b'^{}', b'').decode()
- if verbose:
- print(res)
- return res
+ output_lines = process.stdout.split(b'\n')
+ if len(output_lines) > 1:
+ # Assuming we want the second-to-last line as before
+ res = output_lines[-2].split(b'/')[-1].replace(b'^{}', b'').decode()
+ if verbose:
+ print(res)
+ return res
+ else:
+ if verbose:
+ print("No tags found or insufficient output from git command.")
+ return ''
else:
if verbose:
diff --git a/install_virtualenv.sh b/install_virtualenv.sh
index 214b613c..5909ed75 100755
--- a/install_virtualenv.sh
+++ b/install_virtualenv.sh
@@ -3,7 +3,7 @@
# halt on errors
set -e
-## bash debug mode togle below
+## bash debug mode toggle below
#set -x
if [ -z "$VIRTUAL_ENV" ]; then
diff --git a/reset_AIL.sh b/reset_AIL.sh
index 6fae95d3..29e5ba13 100755
--- a/reset_AIL.sh
+++ b/reset_AIL.sh
@@ -67,8 +67,8 @@ function reset_dir {
popd
fi
- if [ -d CRAWLED_SCREESHOT/ ]; then
- pushd CRAWLED_SCREESHOT/
+ if [ -d CRAWLED_SCREENSHOT/ ]; then
+ pushd CRAWLED_SCREENSHOT/
rm -r *
echo 'cleaned CRAWLED_SCREENSHOT'
popd
diff --git a/var/www/modules/search/templates/search.html b/var/www/modules/search/templates/search.html
index 7d599692..493601cc 100644
--- a/var/www/modules/search/templates/search.html
+++ b/var/www/modules/search/templates/search.html
@@ -11,7 +11,6 @@
-
@@ -126,7 +125,7 @@
-
+