add arg "update": only update, no run
This commit is contained in:
parent
a38fbd385c
commit
52ec06a153
4
run.sh
4
run.sh
@ -12,6 +12,10 @@ scriptdir=$(dirname $(realpath $0))
|
|||||||
|
|
||||||
cd $scriptdir && git pull
|
cd $scriptdir && git pull
|
||||||
|
|
||||||
|
if [ "$1" = "update" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$(id -u)" -eq 0 ]; then
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
echo "Running in root mode."
|
echo "Running in root mode."
|
||||||
$scriptdir/init_root.sh $@
|
$scriptdir/init_root.sh $@
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user