mirror of
https://github.com/linuxserver/docker-documentation.git
synced 2026-03-30 00:03:29 +08:00
Add script used to clean, and restart repo
This commit is contained in:
parent
9a396c22f4
commit
da1178217d
17
scripts/restart-repo.sh
Executable file
17
scripts/restart-repo.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/env bash
|
||||
|
||||
temp=$(mktemp -d)
|
||||
|
||||
cp -r docs/deprecated_images "${temp}"
|
||||
cp -r docs/images "${temp}"
|
||||
|
||||
git remote remove origin
|
||||
git-filter-repo --path docs/images --path docs/deprecated_images --invert-paths --force
|
||||
|
||||
mv "${temp}/deprecated_images" docs
|
||||
mv "${temp}/images" docs
|
||||
|
||||
git add docs/deprecated_images
|
||||
git add docs/images
|
||||
git commit -m "Added templated files"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user