From 0176935d1d53b71555b4809d08b1195fe80c4b2e Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 11 Jun 2019 13:37:25 -0700 Subject: refactor for and setup groq machine --- install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index c00066d..360ffdd 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +if [ -z "$1" ] +then + echo "usage: install.sh " + exit 1 +fi + echo "Symlinking directories" mkdir -p ~/.config/nixpkgs @@ -7,7 +13,7 @@ mkdir -p ~/.config/nixpkgs NIXDIR="$HOME/.config/nixpkgs" HOMEFILE="$NIXDIR/home.nix" -NIXFILE="$(pwd)/$(uname | tr A-Z a-z).nix" +NIXFILE="$(pwd)/$1" [[ -e "$HOMEFILE" ]] || ln -s "$NIXFILE" "$HOMEFILE" [[ -e "$NIXDIR/config.nix" ]] || ln -s "$(pwd)/config.nix" "$NIXDIR/config.nix" -- cgit v1.2.3