summaryrefslogtreecommitdiffstats
path: root/scripts/file-size.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xscripts/file-size.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/file-size.sh b/scripts/file-size.sh
new file mode 100755
index 000000000..7eb742341
--- /dev/null
+++ b/scripts/file-size.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
+set -- $(ls -dn "$1")
+printf '%s\n' "$5"