Skip to content

Commit

Permalink
fix setup
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBen committed Aug 30, 2023
1 parent c52d52d commit b9b6665
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ section() {

copy() {
printf "%s => %s\n" "$(blue "$(printf '%-25s' "$1")")" "$2"
cp "$origin/$1" "$2"
cp "$1" "$2"
}

sudo_copy() {
printf "%s => %s\n" "$(blue "$(printf '%-25s' "$1")")" "$2"
$sudo cp "$origin/$1" "$2"
$sudo cp "$1" "$2"
}

copy_executable() {
Expand Down Expand Up @@ -100,7 +100,7 @@ initialize() {

repo="$1"
repo_url="https://github.com/${repo}.git"
origin=$(mktemp -d)
pushd $(mktemp -d) > /dev/null
}

section "Initializing"
Expand All @@ -110,7 +110,7 @@ section "Checking for pre-requisites"
need git

section "Cloning $repo"
git clone --depth 1 "$repo_url" "$origin"
git clone --depth 1 "$repo_url" .

section "Copying files"
copy_executable 'rush'
Expand Down

0 comments on commit b9b6665

Please sign in to comment.