Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add chmod post-action #1042

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 4 additions & 3 deletions setup.sh
Expand Up @@ -32,25 +32,26 @@ echo Done!
if [ ! -L /usr/local/bin/setup.sh ]; then
echo "Creating symbolic link /usr/local/bin/setup.sh -> $REPOROOT/setup.sh"
sudo ln -s "$REPOROOT/setup.sh" /usr/local/bin/setup.sh
chmod 777 "$REPOROOT/setup.sh"
fi

echo You can now use setup.sh from anywhere to rebuild dotnet new3

if [ ! -L /usr/local/bin/harderreset.sh ]; then
echo "Creating symbolic link /usr/local/bin/harderreset.sh -> $REPOROOT/harderreset.sh"
sudo ln -s "$REPOROOT/harderreset.sh" /usr/local/bin/harderreset.sh
chmod 777 "$REPOROOT/harderreset.sh"
fi

echo You can now use harderreset.sh from anywhere to delete dotnet new3 artifacts

if [ ! -L /usr/local/bin/dotnet-new3 ]; then
echo "Creating symbolic link /usr/local/bin/dotnet-new3 -> $REPOROOT/dev/dotnet-new3.sh"
sudo ln -s "$REPOROOT/dev/dotnet-new3.sh" /usr/local/bin/dotnet-new3
chmod 777 "$REPOROOT/dev/dotnet-new3.sh"
fi

chmod +x "$REPOROOT/setup.sh"
chmod +x "$REPOROOT/harderreset.sh"
chmod +x "$REPOROOT/dev/dotnet-new3.sh"

cd $CWD

echo dotnet new3 is ready!