mirror of
https://gitee.com/amber-ce/amber-ce-bookworm.git
synced 2025-07-18 11:32:23 +08:00
fix:lost option
This commit is contained in:
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" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user