Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LibreCurrency-RD-documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
documents
LibreCurrency-RD-documentation
Commits
c1211b7e
Commit
c1211b7e
authored
3 years ago
by
jbar
Browse files
Options
Downloads
Patches
Plain Diff
little script to be called from a cron
parent
5eb1c6b9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
update_from_git.sh
+14
-0
14 additions, 0 deletions
update_from_git.sh
with
14 additions
and
0 deletions
update_from_git.sh
0 → 100755
+
14
−
0
View file @
c1211b7e
#!/bin/bash
# Call this script with the -D or --buildDrafts to build also content marked as draft.
# And put it on a cron to synchronize periodically
cd
$(
dirname
"
$0
"
)
head
=
"
$(
git rev-parse HEAD
)
"
git stash
git pull
--rebase
--recurse-submodules
git stash pop
[[
$(
git rev-parse HEAD
)
==
$head
]]
||
hugo
"
$@
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment