Upload var/lib/dpkg/info/bash.postinst with huggingface_hub
Browse files
var/lib/dpkg/info/bash.postinst
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#! /bin/bash
|
2 |
+
|
3 |
+
set -e
|
4 |
+
|
5 |
+
# This should never happen.
|
6 |
+
if [ ! -e /bin/sh ]; then
|
7 |
+
ln -s bash /bin/sh
|
8 |
+
fi
|
9 |
+
|
10 |
+
update-alternatives --install \
|
11 |
+
/usr/share/man/man7/builtins.7.gz \
|
12 |
+
builtins.7.gz \
|
13 |
+
/usr/share/man/man7/bash-builtins.7.gz \
|
14 |
+
10 \
|
15 |
+
|| true
|
16 |
+
|
17 |
+
if [ "$1" = configure ] && dpkg --compare-versions "$2" le 3.2-3 \
|
18 |
+
&& which add-shell >/dev/null
|
19 |
+
then
|
20 |
+
add-shell /bin/bash
|
21 |
+
add-shell /bin/rbash
|
22 |
+
fi
|
23 |
+
|
24 |
+
# Automatically added by dh_installmenu/12.10ubuntu1
|
25 |
+
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
|
26 |
+
update-menus
|
27 |
+
fi
|
28 |
+
# End automatically added section
|
29 |
+
|
30 |
+
|
31 |
+
exit 0
|