fix:lost option

This commit is contained in:
shenmo 2024-02-17 16:03:44 +08:00
parent 02a70eb0e7
commit e9c9f488f5

@ -23,20 +23,6 @@ non_root_user=$(who | awk '{print $1}' | head -n 1)
uid=$(id -u $non_root_user)
#### This part is for args pharm
if [ "$1" = "" ];then
container_command="bash"
else
container_command="$1"
shift
for arg in "$@"; do
arg="$(echo "${arg}x" | sed 's|'\''|'\'\\\\\'\''|g')"
arg="${arg%x}"
container_command="${container_command} '${arg}'"
done
fi
bwrap --dev-bind / / \
bwrap \
--setenv LANG "$LANG" \