Files
steamdeck-scripts/ncdu-install.sh
2022-11-14 21:18:04 -05:00

23 lines
402 B
Bash
Executable File

#!/bin/bash
if which ncdu &>/dev/null; then
echo 'ncdu is already installed'
exit 0
fi
if [[ $UID -ne 0 ]]; then
sudo /bin/bash "$0" "$@"
exit $?
fi
# SteamOS's wrapper for: btrfs property set -ts / ro false
steamos-readonly disable
pacman-key --init
pacman-key --populate archlinux
pacman -S ncdu
# SteamOS's wrapper for: btrfs property set -ts / ro true
steamos-readonly enable