check if installed

This commit is contained in:
Terry
2022-11-14 21:18:04 -05:00
parent d3c301424e
commit 0b4d8393c2

10
ncdu-install.sh Normal file → Executable file
View File

@@ -1,10 +1,16 @@
#!/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
#btrfs property set -ts / ro false
# SteamOS's wrapper for: btrfs property set -ts / ro false
steamos-readonly disable
pacman-key --init
@@ -12,5 +18,5 @@ pacman-key --populate archlinux
pacman -S ncdu
#btrfs property set -ts / ro true
# SteamOS's wrapper for: btrfs property set -ts / ro true
steamos-readonly enable