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

Commit

Permalink
git bash windows compatibility (#249), fixes #248
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
jcperkins12 authored and nikhilsaraf committed Aug 20, 2019
1 parent 54d4fc8 commit 8ea336c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function generate_static_web_files() {
echo ""
}

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

echo "embedding contents of gui/web/build into a .go file ..."
go run ./scripts/fs_bin_gen.go
go run ./scripts/fs_bin_gen.go
echo "... finished embedding contents of gui/web/build into a .go file"
echo ""

Expand Down
2 changes: 1 addition & 1 deletion scripts/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function delete_large_dir() {
echo $1
}

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

0 comments on commit 8ea336c

Please sign in to comment.