summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2018-02-09 16:52:44 +0100
committerLeah Neukirchen <leah@vuxu.org>2018-02-09 16:52:44 +0100
commit1c0c62559f18081df508464898fabba4d581329f (patch)
tree0f997a5cdb55d3b1f21b2889e17d1391cbd78e79
parent6c9e9b675c7acf8baf93a86e95000c0ea32b239b (diff)
fsck.bcachefs: convert to POSIX sh
-rwxr-xr-xfsck.bcachefs6
1 files changed, 3 insertions, 3 deletions
diff --git a/fsck.bcachefs b/fsck.bcachefs
index 1494e4c..f8de4a8 100755
--- a/fsck.bcachefs
+++ b/fsck.bcachefs
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
-SDIR="$(dirname "$(readlink -f "$0")")"
-exec "$SDIR/bcachefs" fsck "$@"
+SDIR="$(readlink -f "$0")"
+exec "${SDIR%/*}/bcachefs" fsck "$@"