Added user license file and license bad name check

This commit is contained in:
2022-10-07 04:57:59 -07:00
parent 569d921e2a
commit 266f30af09
3 changed files with 69 additions and 29 deletions
+4 -4
View File
@@ -6,9 +6,9 @@ if [ "$#" -ge 1 ]; then
PREFIX="$1"
fi
export DATA_PATH="$PREFIX/share/license-tool"
export GLOBAL_DATA_PATH="$PREFIX/share/license-tool"
cargo install --path . --root "$PREFIX"
printf "Installing licenses to '%s'\n" "$DATA_PATH"
rm -rf "$DATA_PATH"
cp -R licenses "$DATA_PATH"
printf "Installing licenses to '%s'\n" "$GLOBAL_DATA_PATH"
rm -rf "$GLOBAL_DATA_PATH"
cp -R licenses "$GLOBAL_DATA_PATH"