Skip to content

Commit

Permalink
Merge branch 'bugfix/ghi-#5-invalid-logging-directory-creation' into …
Browse files Browse the repository at this point in the history
…develop
  • Loading branch information
arcticicestudio committed Jan 18, 2017
2 parents 0b664c7 + 30376bf commit 374f7b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 3 additions & 1 deletion snowblocks/bash/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ __snowblock_bash::log_debug() {

__snowblock_bash::setup_history() {
if [ "$SNOWBLOCK_BASH_HISTORY" = true ]; then
mkdir -p $SNOWBLOCK_BASH_BASE_DIR/.log 2> /dev/null
if [ ! -d $SNOWBLOCK_BASH_BASE_DIR/.log ]; then
mkdir -p $SNOWBLOCK_BASH_BASE_DIR/.log 2> /dev/null
fi
export HISTFILE=$SNOWBLOCK_BASH_BASE_DIR/.log/`\date "+%Y-%m-%d"`
else
export HISTFILE=
Expand Down
6 changes: 0 additions & 6 deletions snowblocks/bash/config/pkg/history
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ export HISTSIZE=""
# Sets the filesize to be unlimited.
export HISTFILESIZE=""

# Creates the log destination folder and sets the filename based on the current date.
if [ ! -d $UMIAQ_HOME/.log ]; then
mkdir $UMIAQ_HOME/.log
fi
HISTFILE=$UMIAQ_HOME/.log/`\date "+%Y-%m-%d"`

# +--------+
# + Format +
# +--------+
Expand Down

0 comments on commit 374f7b7

Please sign in to comment.