fix install.zsh pull
This commit is contained in:
@@ -100,6 +100,9 @@ function at-repos-pull() {
|
|||||||
echo $repo
|
echo $repo
|
||||||
if [ -d $d/repos/${repo##*/} ];then
|
if [ -d $d/repos/${repo##*/} ];then
|
||||||
cd $d/repos/${repo##*/}
|
cd $d/repos/${repo##*/}
|
||||||
|
# Clean up before pull: reset changes and remove .orig files from previous patches
|
||||||
|
git checkout -- .
|
||||||
|
find . -name "*.orig" -type f -delete 2>/dev/null
|
||||||
git stash -u
|
git stash -u
|
||||||
if ! git pull;then
|
if ! git pull;then
|
||||||
rm -rf $d/repos/${repo##*/}
|
rm -rf $d/repos/${repo##*/}
|
||||||
|
|||||||
Reference in New Issue
Block a user