Skip to content

Commit

Permalink
[C] Bump Henchman to 2.0.2
Browse files Browse the repository at this point in the history
Adds support for ordering files by date when getting list of
files from directory.
  • Loading branch information
rclarkburns committed Mar 5, 2018
1 parent e08f323 commit 845b65e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion donut
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# Author - clark@castironcoding.com
# Purpose - Generates daily backup with retention for 1 week. Eventually smooch will replace this.
henchman_version="v2.0.1"
henchman_version="v2.0.2"
henchman_location="./lib/"
henchman_debug=false
main() {
Expand Down
6 changes: 3 additions & 3 deletions lib/henchman
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


# Release Information
# v2.0.1
# v2.0.2
# Mr. Kidd


Expand Down Expand Up @@ -208,15 +208,15 @@ henchman() {
}

##
# Get list of files in dir
# Get list of files in dir ordered by date descending
#
# ${1} - path to directory
# ${2} - constraint pattern (optional)
# return - array
##
get_files_in_directory() {
_require_params $# "$*" 1 1
local response=$(ls -ap ${1} | grep "${2}" | grep -v / )
local response=$(ls -apt ${1} | grep "${2}" | grep -v / )
echo ${response}
}

Expand Down

0 comments on commit 845b65e

Please sign in to comment.