mirror of https://github.com/citusdata/citus.git
14 lines
348 B
Bash
Executable File
14 lines
348 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
## Set mydir to the directory containing the script
|
|
## The ${var%pattern} format will remove the shortest match of
|
|
## pattern from the end of the string. Here, it will remove the
|
|
## script's name,. leaving only the directory.
|
|
datadir="${0%/*}"
|
|
cd "${datadir}"
|
|
|
|
# shellcheck source=copy_modified
|
|
source copy_modified
|