mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
Skip from worktree the css/custom.css:
On the next release the css/custom.css will rename to css/custom.css.sample This change run git instructions to detach the file from own local repository. This instructions are called in untrack-css.sh file from run-start.sh and npm postinstall step Reference #1540
This commit is contained in:
11
untrack-css.sh
Executable file
11
untrack-css.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
# Long history here
|
||||
# https://github.com/MichMich/MagicMirror/pull/1540
|
||||
STATUS_CUSTOM_CSS=$(git ls-files -v css/custom.css|cut -f 1 --delimiter=" ")
|
||||
|
||||
if [ "$STATUS_CUSTOM_CSS" = "H" ]; then
|
||||
echo "We'll remove from the repository the css/custom.css"
|
||||
echo "This script apply git update-index --skip-worktree css/custom.css"
|
||||
git update-index --skip-worktree css/custom.css
|
||||
git rm --cached css/custom.css
|
||||
fi
|
||||
|
Reference in New Issue
Block a user