Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit 8ea336c

Browse files
jcperkins12nikhilsaraf
authored andcommitted
git bash windows compatibility (#249), fixes #248
* removed 'rev' command from build script for Git Bash for Windows compatibility as rev is not a native bash command on that platform. * Substituted `pwd | rev | cut -d'/' -f1 | rev` for $(basename $("pwd")) but also could have used `pwd | sed 's#.*/##'` for the same effect * Same rev command fix applied to clean.sh
1 parent 54d4fc8 commit 8ea336c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function generate_static_web_files() {
3333
echo ""
3434
}
3535

36-
if [[ ($# -gt 1 || `pwd | rev | cut -d'/' -f1 | rev` != "kelp") ]]
36+
if [[ ($# -gt 1 || $(basename $("pwd")) != "kelp") ]]
3737
then
3838
echo "need to invoke from the root 'kelp' directory"
3939
exit 1
@@ -117,7 +117,7 @@ install_web_dependencies
117117
generate_static_web_files
118118

119119
echo "embedding contents of gui/web/build into a .go file ..."
120-
go run ./scripts/fs_bin_gen.go
120+
go run ./scripts/fs_bin_gen.go
121121
echo "... finished embedding contents of gui/web/build into a .go file"
122122
echo ""
123123

scripts/clean.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function delete_large_dir() {
1010
echo $1
1111
}
1212

13-
if [[ ($# -gt 1 || `pwd | rev | cut -d'/' -f1 | rev` != "kelp") ]]
13+
if [[ ($# -gt 1 || $(basename $("pwd")) != "kelp") ]]
1414
then
1515
echo "need to invoke from the root 'kelp' directory"
1616
exit 1

0 commit comments

Comments
 (0)