Skip to content

Commit

Permalink
fix(shell-wrapper): remove libDir before populating (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredallard authored Mar 2, 2023
1 parent 61f5a7a commit 24f6acd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/devbase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ version=$(get_field_from_yaml '.modules[] | select(.name == "github.com/getoutre
existingVersion=$(cat "$libDir/.version" 2>/dev/null || true)

if [[ ! -e $libDir ]] || [[ $existingVersion != "$version" ]] || [[ ! -e "$libDir/.version" ]]; then
rm -rf "$libDir"

if [[ $version == "local" ]]; then
# If we're using a local version, we should use ln
# to map the local devbase into the bootstrap dir
Expand Down
2 changes: 2 additions & 0 deletions templates/scripts/devbase.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ version=$(get_field_from_yaml '.modules[] | select(.name == "github.com/getoutre
existingVersion=$(cat "$libDir/.version" 2>/dev/null || true)

if [[ ! -e $libDir ]] || [[ $existingVersion != "$version" ]] || [[ ! -e "$libDir/.version" ]]; then
rm -rf "$libDir"

if [[ $version == "local" ]]; then
# If we're using a local version, we should use ln
# to map the local devbase into the bootstrap dir
Expand Down

0 comments on commit 24f6acd

Please sign in to comment.