forked from jerlendds/osintbuddy
-
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.
task: Script renaming and variable quoting to work on windows and han…
…dle paths with spaces. Signed-off-by: Dillon <[email protected]>
- Loading branch information
Showing
10 changed files
with
57 additions
and
42 deletions.
There are no files selected for viewing
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
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
0
ob/cmd/api:gen → ob/cmd/api_gen
100755 → 100644
File renamed without changes.
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
0
ob/cmd/debug:send → ob/cmd/debug_send
100755 → 100644
File renamed without changes.
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
0
ob/cmd/pkg:update → ob/cmd/pkg_update
100755 → 100644
File renamed without changes.
0
ob/cmd/setup:dev → ob/cmd/setup_dev
100755 → 100644
File renamed without changes.
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
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,19 @@ | ||
#!/usr/bin/env bash | ||
# Helpful utility functions used by various scripts | ||
|
||
function get_is_windows() { | ||
# Check if the OSTYPE variable is null or unset | ||
if [ -z "$OSTYPE" ]; then | ||
return 1 # Not Windows | ||
else | ||
# Check the operating system to determine if it is Windows | ||
case "$OSTYPE" in | ||
msys*|cygwin*|mingw*|win32*) | ||
return 0 # Windows | ||
;; | ||
*) | ||
return 1 # Not Windows | ||
;; | ||
esac | ||
fi | ||
} |