Skip to content

Commit

Permalink
fix: script determine
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuprin committed Dec 3, 2023
1 parent 94af5a2 commit 22011e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions main.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Determine the directory where this script resides
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"

print_usage() {
cat <<EOF
Usage: ${0} [command] [options]
Expand All @@ -13,11 +16,11 @@ EOF
}

lokalise() {
./bin/lokalise.sh "$@"
"$DIR/bin/lokalise.sh" "$@"
}

version() {
./bin/version.sh "$@"
"$DIR/bin/version.sh" "$@"
}

main() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "crewcli",
"version": "0.0.3",
"version": "0.0.4",
"description": "A collection of bash scripts for different modules",
"scripts": {
"test": "npm link && crewcli --help"
Expand Down

0 comments on commit 22011e7

Please sign in to comment.