Skip to content

Commit

Permalink
fix: typo, env loader [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
Maurice Faber committed Aug 31, 2021
1 parent 94a330a commit 57e87d4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
11 changes: 11 additions & 0 deletions bin/loadenv
@@ -0,0 +1,11 @@
#!/bin/bash
. bin/aliases

if [ -z "$ENV_DIR" ]; then
echo "You did not set ENV_DIR yet!"
else
set -a
PATH=./binzx:$PATH
source $ENV_DIR/.secrets
set +a
fi
7 changes: 5 additions & 2 deletions binzx/otomi
Expand Up @@ -277,14 +277,17 @@ fi

mkdir -p /tmp/otomi
container_name='otomi-core-dev-container'
count=$(ps -a | grep $container_name | wc -l) >/dev/null
container_name="$container_name-$count"

if [ -n "$IN_DOCKER" ]; then
$cmd
status=$?
elif [[ $calling_args == *'--get-yargs-completions'* ]]; then
docker run --name $container_name -e SHELL=$SHELL "$otomi_tools_image" bash -c "$cmd"
docker run --name $container_name --rm -e SHELL=$SHELL "$otomi_tools_image" bash -c "$cmd"
status=$?
else
docker run --name $container_name --init $it \
docker run --name $container_name --rm --init $it \
$linux_workaround \
$network \
$stack_volume \
Expand Down
2 changes: 1 addition & 1 deletion src/server/index.ts
Expand Up @@ -9,7 +9,7 @@ import { terminal } from '../common/utils'

const debug = terminal('server')
const app = express()
let server: Server§
let server: Server

export const stopServer = (): void => {
server?.close()
Expand Down

0 comments on commit 57e87d4

Please sign in to comment.