From 8b0ddb9c91fac23e80c0ac1ea91f1e0a71e6f3d1 Mon Sep 17 00:00:00 2001 From: Alexander Sosedkin Date: Thu, 7 Mar 2019 21:07:46 +0700 Subject: [PATCH] Fix stat invocation in /etc/passwd generation --- script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script b/script index 2bba6cd..d49f902 100755 --- a/script +++ b/script @@ -95,7 +95,7 @@ export PROOT_TMP_DIR=$INST/tmp if [ ! -e $INST/etc/passwd ]; then echo "Creating an entry in /etc/passwd..." - echo "nix-on-droid:x:\$(/system/bin/stat -c '%u:%g'):nix-on-droid:/bin/sh" > $INST/etc/passwd + echo "nix-on-droid:x:\$(/system/bin/stat -c '%u:%g' $INST):nix-on-droid:/bin/sh" > $INST/etc/passwd fi exec $INST/bin/proot \