open-vault/scripts/assetcheck.sh
Hamid Ghaf 27bb03bbc0
adding copyright header (#19555)
* adding copyright header

* fix fmt and a test
2023-03-15 09:00:52 -07:00

17 lines
418 B
Bash
Executable file

#!/usr/bin/env bash
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
if [[ ! -e http/web_ui/index.html ]]
then
printf "Compiled UI assets not found. They can be built with: make static-dist\n\n"
exit 1
else
if [[ `find http/web_ui/index.html -mmin +10080` ]]
then
printf "Compiled UI assets are more than one week old. They can be rebuilt with: make static-dist\n\n"
exit 1
fi
fi