-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of ssh://[email protected]/rxx/dev_sandbox
- Loading branch information
Showing
222 changed files
with
638 additions
and
459 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/env bash | ||
|
||
# Show usage if $1 is empty | ||
if [[ -z "$1" ]]; then | ||
echo "usage $0 <project path>" | ||
exit 1 | ||
fi | ||
|
||
if [[ ! -e "$1" && ! -d "$1" ]]; then | ||
echo "$1 is invalid" | ||
exit 1 | ||
fi | ||
|
||
# Get the absolute path to the directory containing this script | ||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" | ||
|
||
# Set the ROOT variable one level up from the script's location | ||
ROOT="$(dirname "$SCRIPT_DIR")" | ||
|
||
if [[ -L "$ROOT/current" ]]; then | ||
rm current | ||
fi | ||
|
||
ln -s "$1" "$ROOT/current" | ||
|
||
if [[ ! -e "$ROOT/current/.replit" ]]; then | ||
echo "$1/.replit must exist" | ||
exit 1 | ||
fi | ||
|
||
if [[ -L "$ROOT/.replit" ]]; then | ||
rm "$ROOT/.replit" | ||
fi | ||
|
||
ln -s "$ROOT/current/.replit" "$ROOT/.replit" | ||
|
||
if [[ -L "$ROOT/replit.nix" ]]; then | ||
rm "$ROOT/replit.nix" | ||
fi | ||
|
||
if [[ -e "$ROOT/current/replit.nix" ]]; then | ||
ln -s "$ROOT/current/replit.nix" "$ROOT/replit.nix" | ||
fi |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.