27 lines
294 B
Bash
27 lines
294 B
Bash
|
#! /usr/bin/bash
|
||
|
|
||
|
echo starting update
|
||
|
|
||
|
FILE=./ignoreDrives.conf
|
||
|
if test -f "$FILE"; then
|
||
|
echo backup exits
|
||
|
else
|
||
|
cp reHDD/ignoreDrives.conf ./ignoreDrives.conf
|
||
|
fi
|
||
|
|
||
|
cd reHDD
|
||
|
|
||
|
git reset
|
||
|
|
||
|
git stash force
|
||
|
|
||
|
git stash
|
||
|
|
||
|
git checkout master
|
||
|
|
||
|
git pull
|
||
|
|
||
|
make release
|
||
|
|
||
|
cp ../ignoreDrives.conf ./
|