forked from sig_core/toolkit
fix safednf
This commit is contained in:
parent
96f8877d1b
commit
2cb5ae42b9
@ -9,6 +9,12 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f /usr/bin/dnf4 ]; then
|
||||||
|
SAFEDNF=/usr/bin/dnf4
|
||||||
|
else
|
||||||
|
SAFEDNF=/usr/bin/dnf
|
||||||
|
fi
|
||||||
|
|
||||||
export RLVER="${MAJOR}"
|
export RLVER="${MAJOR}"
|
||||||
source common
|
source common
|
||||||
|
|
||||||
|
@ -13,6 +13,12 @@ if [ -n "$2" ] && [[ "$2" == "lh" ]]; then
|
|||||||
export LH="lh"
|
export LH="lh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f /usr/bin/dnf4 ]; then
|
||||||
|
SAFEDNF=/usr/bin/dnf4
|
||||||
|
else
|
||||||
|
SAFEDNF=/usr/bin/dnf
|
||||||
|
fi
|
||||||
|
|
||||||
export RLVER="${MAJOR}"
|
export RLVER="${MAJOR}"
|
||||||
source common
|
source common
|
||||||
|
|
||||||
|
@ -18,6 +18,12 @@ if [ "$grep_val" -ne 0 ]; then
|
|||||||
echo "Date format incorrect. You must use: YYYYMMDD.X"
|
echo "Date format incorrect. You must use: YYYYMMDD.X"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f /usr/bin/dnf4 ]; then
|
||||||
|
SAFEDNF=/usr/bin/dnf4
|
||||||
|
else
|
||||||
|
SAFEDNF=/usr/bin/dnf
|
||||||
|
fi
|
||||||
|
|
||||||
export RLVER="${MAJOR}"
|
export RLVER="${MAJOR}"
|
||||||
source common
|
source common
|
||||||
|
|
||||||
|
@ -18,6 +18,12 @@ if [ "$grep_val" -ne 0 ]; then
|
|||||||
echo "Date format incorrect. You must use: YYYYMMDD.X"
|
echo "Date format incorrect. You must use: YYYYMMDD.X"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f /usr/bin/dnf4 ]; then
|
||||||
|
SAFEDNF=/usr/bin/dnf4
|
||||||
|
else
|
||||||
|
SAFEDNF=/usr/bin/dnf
|
||||||
|
fi
|
||||||
|
|
||||||
export RLVER="${MAJOR}"
|
export RLVER="${MAJOR}"
|
||||||
source common
|
source common
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user