Commit 6c907cfd authored by Aral Balkan's avatar Aral Balkan

Added better/update-stats command as a convenient shortcut to running...

Added better/update-stats command as a convenient shortcut to running ./inquiry --local in Inspector.
parent f1fde791
Pipeline #648 skipped
#!/bin/sh
################################################################################
#
# Better command: update-stats
#
# Usage: update-stats
#
# Convenience command: uses the inspector (runs a inquiry --local)
# which will update the statistics in all content and draft pages.
#
# This is Independent Technology.
#
# ▲❤ We practice Ethical Design (https://ind.ie/ethical-design)
#
# © Aral Balkan. © Ind.ie. All Rights Reserved.
# Released with love by Ind.ie under GNU AGPLv3 or later.
# Free as in freedom. Please see the LICENSE file.
#
################################################################################
#
# Runs command in requested directory and restores the working directory at the end.
# Usage: run <directory> "<command>"
#
runIn(){
pushd $1 >/dev/null
eval $2
popd >/dev/null
}
runIn inspector "./inquiry --local"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment