mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-11 09:54:36 +00:00
core: fix empty header if header in repo exist (#3536)
This commit is contained in:
parent
b8c5691803
commit
6adb811adf
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ get_header() {
|
||||||
mkdir -p "/usr/local/community-scripts/headers"
|
mkdir -p "/usr/local/community-scripts/headers"
|
||||||
|
|
||||||
# Check if local file already present
|
# Check if local file already present
|
||||||
if [ ! -f "$local_header_path" ]; then
|
if [ ! -s "$local_header_path" ]; then
|
||||||
wget -qO "$local_header_path" "$header_url"
|
wget -qO "$local_header_path" "$header_url"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo -e "${WARN}${BOLD}${YLW}Failed to download header for ${app_name}. No header will be displayed.${CL}"
|
echo -e "${WARN}${BOLD}${YLW}Failed to download header for ${app_name}. No header will be displayed.${CL}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue