From 60c79ca99e3f1c86c33349b72c656c880adccddc Mon Sep 17 00:00:00 2001 From: James Swineson Date: Tue, 9 Apr 2019 15:58:04 +0800 Subject: [PATCH] fix cp path expanding --- menhera.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/menhera.sh b/menhera.sh index bc6c611..5c24315 100755 --- a/menhera.sh +++ b/menhera.sh @@ -70,7 +70,7 @@ copy_config() { echo "Copying important config into new rootfs..." cp -ax "${OLDROOT}/etc/resolv.conf" "${NEWROOT}/etc" cp -axr "${OLDROOT}/etc/ssh" "${NEWROOT}/etc" - cp -ax "${OLDROOT}/etc/{passwd,shadow}" "${NEWROOT}/etc" + cp -ax "${OLDROOT}/etc/"{passwd,shadow} "${NEWROOT}/etc" cp -axr "${OLDROOT}/root/.ssh" "${NEWROOT}/root" chroot "${NEWROOT}" chsh -s /bin/bash root