Skip to content

Commit 46c62dc

Browse files
committed
update-to-head: more robust bootstrap
1 parent d601250 commit 46c62dc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

update-to-head.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ echo "Updating your installation..."
3737
if test -d .git; then
3838
git pull --ff-only
3939
else
40-
git clone "https://github.com/pyroscope/pyrocore.git" pyroscope
41-
cd pyroscope
40+
git clone "https://github.com/pyroscope/pyrocore.git" tmp
41+
mv tmp/???* tmp/.??* .; rmdir tmp
42+
MY_SUM="let's start over"
4243
fi
4344

4445
if test "$MY_SUM" != $(md5sum "$0" | cut -f1 -d' '); then

0 commit comments

Comments
 (0)