mirror of
https://github.com/webmin/webmin.git
synced 2025-08-16 14:51:18 +00:00
authentic does not support alternative repo, cleanup
This commit is contained in:
@ -353,23 +353,12 @@ fi
|
||||
echo -e "${BLUE} iconv not found, skipping lang files!${NC}"
|
||||
fi
|
||||
|
||||
# check if alternatve repo exist
|
||||
AUTHREPO=`echo ${REPO} | sed "s/\/.*min$/\/autehtic-theme/"`
|
||||
if [[ "${REPO}" != "${AUTHREPO}" ]]; then
|
||||
if [[ "${CURL}" != "" ]] ; then
|
||||
exist=`${CURL} -s -L ${HOST}/${AUTHREPO}`
|
||||
[[ "${#exist}" -lt 20 ]] && RREPO="${AUTHREPO}"
|
||||
else
|
||||
echo -e "${RED}Warning: Command \`curl\` is not installed or not in the \`PATH\`,${NC} using default repo ..."
|
||||
WARNINGS="yes"
|
||||
fi
|
||||
fi
|
||||
# run authenric-thme update, possible unattended
|
||||
if [[ -x authentic-theme/theme-update.sh ]] ; then
|
||||
if [[ "${ASK}" == "YES" ]] ; then
|
||||
authentic-theme/theme-update.sh ${RREPO}
|
||||
authentic-theme/theme-update.sh
|
||||
else
|
||||
yes | authentic-theme/theme-update.sh ${RREPO}
|
||||
yes | authentic-theme/theme-update.sh
|
||||
fi
|
||||
fi
|
||||
else
|
||||
|
Reference in New Issue
Block a user