summaryrefslogtreecommitdiffstats
path: root/lib/package.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/package.sh')
-rw-r--r--lib/package.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/package.sh b/lib/package.sh
index 0ade56a..d66d596 100644
--- a/lib/package.sh
+++ b/lib/package.sh
@@ -28,10 +28,10 @@ ob_init_package()
local dir="${1}"
shift 1 || _ob_abort
- _OB_PACKAGE_DIR="$(cd "${dir}" && pwd)"
+ _OB_PACKAGE_DIR="$(cd -- "${dir}" && pwd)"
if [ -r "${_OB_PACKAGE_DIR}/format" ]; then
- case "$(cat "${_OB_PACKAGE_DIR}/format")" in
+ case "$(cat -- "${_OB_PACKAGE_DIR}/format")" in
2.0)
_OB_PACKAGE_FORMAT='2'
;;