1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2026-03-02 03:49:29 +00:00

get rid of dirname

This commit is contained in:
Martin Zuther
2019-12-29 12:51:29 +01:00
parent 3c204119fb
commit bd19e31c6e
3 changed files with 6 additions and 8 deletions

View File

@@ -17,8 +17,8 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
YADM_DIRECTORY=$(dirname "$YADM_HOOK_REPO")
YADM_CHECKSUMS=$YADM_DIRECTORY/files.checksums
YADM_CHECKSUMS="$YADM_HOOK_DIR/files.checksums"
WARNING_MESSAGE="No checksums were created"
# unpack exported array; filenames including a newline character (\n)
# are NOT supported
@@ -27,8 +27,6 @@ IFS=$'\n'
YADM_ENCRYPT_INCLUDE_FILES=( $YADM_ENCRYPT_INCLUDE_FILES )
IFS="$OLD_IFS"
WARNING_MESSAGE="No checksums were created"
function get_checksum_command {
# check if "shasum" exists and supports the algorithm (which is

View File

@@ -17,8 +17,8 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
YADM_DIRECTORY=$(dirname "$YADM_HOOK_REPO")
YADM_CHECKSUMS=$YADM_DIRECTORY/files.checksums
YADM_CHECKSUMS="$YADM_HOOK_DIR/files.checksums"
WARNING_MESSAGE="Checksums were not verified"
# unpack exported array; filenames including a newline character (\n)
# are NOT supported
@@ -27,8 +27,6 @@ IFS=$'\n'
YADM_ENCRYPT_INCLUDE_FILES=( $YADM_ENCRYPT_INCLUDE_FILES )
IFS="$OLD_IFS"
WARNING_MESSAGE="Checksums were not verified"
function get_checksum_command {
# check if "shasum" exists and supports the algorithm (which is