Skip to content

Commit b1e98ac

Browse files
authored
Fix nix installation
1 parent 9bde04d commit b1e98ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.devcontainer/first-run-setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ fi
9898

9999
echo "Installing Nix..."
100100
# Check if Nix is already installed
101-
if [ -e "/nix" ]; then
101+
if command -v nix >/dev/null 2>&1; then
102102
echo "Nix already installed. Skipping..."
103103
else
104104
# Install Nix
@@ -186,4 +186,4 @@ fi
186186
echo "Installing asdf plugins and packages..."
187187
# Install asdf plugins and packages from .tool-versions file
188188
ln -sf "$HOME/.codespaces/.tool-versions" "$HOME/.tool-versions"
189-
cut -d ' ' -f1 "$HOME/.tool-versions" | xargs -I {} sh -c 'echo "Installing {}..."; asdf plugin add {} && asdf install {}'
189+
cut -d ' ' -f1 "$HOME/.tool-versions" | xargs -I {} sh -c 'echo "Installing {}..."; asdf plugin add {} && asdf install {}'

0 commit comments

Comments
 (0)