summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2018-02-09 16:54:03 +0100
committerLeah Neukirchen <leah@vuxu.org>2018-02-09 16:54:03 +0100
commit2a6b7fe8ba9e8416ea6543a55b2113b13557dc36 (patch)
treed2f783ab00cb96fe9f8616ab3eb871f9805209b2
parent1c0c62559f18081df508464898fabba4d581329f (diff)
mkfs.bcachefs: convert to POSIX sh
-rwxr-xr-xmkfs.bcachefs6
1 files changed, 3 insertions, 3 deletions
diff --git a/mkfs.bcachefs b/mkfs.bcachefs
index a0541d5..b3631ba 100755
--- a/mkfs.bcachefs
+++ b/mkfs.bcachefs
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
-SDIR="$(dirname "$(readlink -f "$0")")"
-exec "$SDIR/bcachefs" format "$@"
+SDIR="$(readlink -f "$0")"
+exec "${SDIR%/*}/bcachefs" format "$@"