mirror of
https://gitee.com/amber-ce/amber-ce-bookworm.git
synced 2025-12-14 11:02:05 +08:00
fix:lost option
This commit is contained in:
@@ -23,20 +23,6 @@ non_root_user=$(who | awk '{print $1}' | head -n 1)
|
|||||||
uid=$(id -u $non_root_user)
|
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 --dev-bind / / \
|
||||||
bwrap \
|
bwrap \
|
||||||
--setenv LANG "$LANG" \
|
--setenv LANG "$LANG" \
|
||||||
|
|||||||
Reference in New Issue
Block a user