23 lines
402 B
Bash
Executable File
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
|