mbland / go-script-bash

Framework for writing modular, discoverable, testable Bash scripts
ISC License
95 stars 16 forks source link

lib/path: Fix @go.canonicalize_path bugs, add @go.add_parent_dir_if_relative_path #206

Closed mbland closed 7 years ago

mbland commented 7 years ago

@go.canonicalize_path now canonicalizes the empty string as the empty path, and removes leading ./ components.

The need for @go.add_parent_dir_if_relative_path became apparent while creating the upcoming @go.copy_files_safely.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.02%) to 94.926% when pulling b43aeb36fe10f0cf4802fade2f9355557c3e8d65 on path-lib into 19403c9640a6db7851000c652242fe591ff19acc on master.