Fix postinstall scripts

This commit is contained in:
r1oga
2022-12-20 11:00:10 +01:00
parent e678b7f804
commit a516a3e290
3 changed files with 4 additions and 16 deletions

View File

@@ -1,13 +1,7 @@
#!/bin/bash
#echo "HERE"
if [[ ! -f "$INIT_CWD/.prettierrc.yaml" ]];then
echo "'@r1oga/prettier-config'" > "$INIT_CWD/.prettierrc.yaml"
else
# shellcheck disable=SC2162
read -p "overwrite .prettierrc.yaml?(Yn) " overwrite
if [[ -z "$overwrite" || "$overwrite" -eq "Y" || "$overwrite" -eq "y" ]];then
echo "'@r1oga/prettier-config'" > "$INIT_CWD/.prettierrc.yaml"
fi
fi
cp -i .prettierignore "$INIT_CWD/.prettierignore"
cp -n .prettierignore "$INIT_CWD/.prettierignore"