1
0
mirror of https://github.com/jenv/jenv.git synced 2026-05-03 03:44:37 +01:00
Files
jenv/libexec/jenv-options-file-write
T
2013-01-29 14:15:14 +01:00

19 lines
350 B
Bash
Executable File

#!/usr/bin/env bash
# Usage: jenv options-file-write <file> <options>
set -e
[ -n "$JENV_DEBUG" ] && set -x
JENV_OPTIONS_FILE="$1"
JENV_OPTIONS="$2"
if [ -z "$JENV_OPTIONS" ] || [ -z "$JENV_OPTIONS_FILE" ]; then
jenv-help --usage options-file-write >&2
exit 1
fi
# Write the options out to disk.
echo "$JENV_OPTIONS" > "$JENV_OPTIONS_FILE"