Skip to content

Commit

Permalink
Update bash scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
neilsarkar committed Feb 22, 2021
1 parent 158674e commit 54e1068
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bash/pull.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
ROOT="$DIR/.."

echo "Choose a project:"
echo "[1] king_of_the_hat"
echo "[2] Package Party"
Expand All @@ -17,7 +21,7 @@ case $REPLY in
;;
esac

cp -r "$HOME/work/${projectName}/Packages/violetui/" .
cp -r "$HOME/work/${projectName}/Packages/violetui/" $ROOT
tee Runtime/Navigation/ScreenId.cs &> /dev/null <<EOF
// Names are automatically added through ScreenIdGenerator.cs, deletions are done manually :)
public enum ScreenId {
Expand Down
4 changes: 4 additions & 0 deletions bash/push.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
ROOT="$DIR/.."

echo "Choose a project:"
echo "[1] king_of_the_hat"
echo "[2] Package Party"
Expand Down
2 changes: 2 additions & 0 deletions bash/update.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
ROOT="$DIR/.."

printf 'Copy code from sample project? [y/N]: '
read answer
Expand Down

0 comments on commit 54e1068

Please sign in to comment.