Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
3577f593
Commit
3577f593
authored
Dec 02, 2023
by
refcell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(scripts): foundry update reset local repo for commit installs
parent
05deae54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
install-foundry.sh
ops/scripts/install-foundry.sh
+12
-0
No files found.
ops/scripts/install-foundry.sh
View file @
3577f593
...
@@ -8,6 +8,18 @@ SHA=$(cat ./.foundryrc)
...
@@ -8,6 +8,18 @@ SHA=$(cat ./.foundryrc)
# Check if there is a nightly tag corresponding to the `.foundryrc` commit hash
# Check if there is a nightly tag corresponding to the `.foundryrc` commit hash
TAG
=
"nightly-
$SHA
"
TAG
=
"nightly-
$SHA
"
# If the foundry repository exists and a branch is checked out, we need to abort
# any changes inside ~/.foundry/foundry-rs/foundry. This is because foundryup will
# attempt to pull the latest changes from the remote repository, which will fail
# if there are any uncommitted changes.
if
[
-d
~/.foundry/foundry-rs/foundry
]
;
then
echo
"Foundry repository exists! Aborting any changes..."
cd
~/.foundry/foundry-rs/foundry
git reset
--hard
git clean
-fd
cd
-
fi
# Create a temporary directory
# Create a temporary directory
TMP_DIR
=
$(
mktemp
-d
)
TMP_DIR
=
$(
mktemp
-d
)
echo
"Created tempdir @
$TMP_DIR
"
echo
"Created tempdir @
$TMP_DIR
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment