-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp
More file actions
executable file
·37 lines (29 loc) · 813 Bytes
/
app
File metadata and controls
executable file
·37 lines (29 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env bash
#
# Alias shell script for ./bin/bashdrop.
set -e
#######################################
# Prevent Sourcing
#
# Firstly, we need to ensure Bashdrop
# is executed in a new shell process.
#######################################
if [[ ${BASH_SOURCE[0]} != "$0" ]]; then
echo >&2 "ERROR: \`Bashdrop\` cannot be sourced."
exit 1
fi
#######################################
# Define Global Constant
#
# Secondly, we determine the Bashdrop
# directory.
#######################################
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
readonly CURRENT_DIR
#######################################
# Run The Application
#
# Finally, we execute the Bashdrop
# application.
#######################################
exec "${CURRENT_DIR}/bin/bashdrop" "$@"