mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-09-30 05:01:10 +02:00
update to go 1.22 and operator-sdk 1.35 (#1094)
Co-authored-by: brokenpip3 <brokenpip3@gmail.com> Co-authored-by: Ansh Garhewal <me@anshdevs.in> Co-authored-by: xmbhasin <xmbhasin@users.noreply.github.com>
This commit is contained in:
co-authored by
brokenpip3
Ansh Garhewal
xmbhasin
parent
1ec83b9de9
commit
9c09db8031
@@ -1 +1 @@
|
||||
v0.4.0
|
||||
v0.4.1
|
||||
|
||||
@@ -24,6 +24,7 @@ is_backup_not_exist() {
|
||||
|
||||
# Check if we have any backup
|
||||
if is_backup_not_exist "${BACKUP_DIR}"; then
|
||||
_log "No backups exist in ${BACKUP_DIR}"
|
||||
echo "-1"
|
||||
exit 0
|
||||
fi
|
||||
@@ -32,6 +33,7 @@ fi
|
||||
latest=$(find "${BACKUP_DIR}"/*.tar.* -maxdepth 0 -exec basename {} \; | sort -g | tail -n 1)
|
||||
|
||||
if [[ "${latest}" == "" ]]; then
|
||||
_log "Could not get the latest backup."
|
||||
echo "-1"
|
||||
else
|
||||
echo "${latest%%.*}"
|
||||
|
||||
Reference in New Issue
Block a user