mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
more shellchecks
This commit is contained in:
parent
66b763c262
commit
29f5eaa919
1 changed files with 3 additions and 1 deletions
|
@ -114,6 +114,7 @@ _zram_usr() {
|
|||
ldconfig
|
||||
ln -sfn /usr.zram/bin /bin
|
||||
ln -sfn /usr.zram/bin /sbin
|
||||
#shellcheck disable=SC2115
|
||||
rm -r /usr/*
|
||||
/usr.zram/bin/./mount --bind /usr.zram /usr
|
||||
systemctl daemon-reload > /dev/tty7 2>&1
|
||||
|
@ -259,6 +260,7 @@ _cleanup_install() {
|
|||
|
||||
_cleanup_cache() {
|
||||
# remove packages from cache
|
||||
#shellcheck disable=SC2013
|
||||
for i in $(grep -w 'installed' /var/log/pacman.log | cut -d ' ' -f 4); do
|
||||
rm -rf /var/cache/pacman/pkg/"${i}"-[0-9]*
|
||||
done
|
||||
|
@ -539,7 +541,7 @@ EOF
|
|||
sed -i -e 's#Categories=.*#Categories=X-Xfce-Toplevel;#g' /usr/share/applications/gparted.desktop
|
||||
echo "Hiding ${_HIDE_MENU} menu entries ..."
|
||||
for i in ${_HIDE_MENU}; do
|
||||
echo 'NoDisplay=true' >> /usr/share/applications/$i.desktop
|
||||
echo 'NoDisplay=true' >> /usr/share/applications/"${i}".desktop
|
||||
done
|
||||
echo "Autostarting setup ..."
|
||||
cat << EOF > /etc/xdg/autostart/archboot.desktop
|
||||
|
|
Loading…
Reference in a new issue