Handle symlinks too from containers

This commit is contained in:
Rudra Saraswat 2023-04-26 10:11:52 +05:30
parent 46eb49a898
commit 956e8eb1b5

View file

@ -65,7 +65,9 @@ def create_container_binaries():
for c in _list: for c in _list:
c = c.strip() c = c.strip()
for i in con_get_output(c, '''find /usr/bin -type f -printf "%P\n" 2>/dev/null; for i in con_get_output(c, '''find /usr/bin -type f -printf "%P\n" 2>/dev/null;
find /usr/local/bin -type f -printf "%P\n" 2>/dev/null;''').split('\n'): find -L /usr/bin -xtype l -type f -printf "%P\n" 2>/dev/null;
find /usr/local/bin -type f -printf "%P\n" 2>/dev/null;
find -L /usr/local/bin -xtype l -type f -printf "%P\n" 2>/dev/null;''').split('\n'):
i = i.strip() i = i.strip()
os.makedirs(os.path.expanduser( os.makedirs(os.path.expanduser(
f'~/.local/bin/blend_{c}'), exist_ok=True) f'~/.local/bin/blend_{c}'), exist_ok=True)