X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=mount-latest-subvol;h=215b07f8faf0f73ef227005ae693b17f626caf9d;hp=bf5ec9c844e27221d0a91548dfc834f16fdb6b05;hb=af37f71b1c4e1dfa9ebe9a270f4b839cd742cad5;hpb=a8aa03c1f901a6176f289ec41541b0897944a96c diff --git a/mount-latest-subvol b/mount-latest-subvol index bf5ec9c..215b07f 100644 --- a/mount-latest-subvol +++ b/mount-latest-subvol @@ -15,6 +15,8 @@ # usage: mount-latest-subvol +# TODO, check our current directory, make sure we arent going to kill ourselves + [[ $EUID == 0 ]] || exec sudo -E "$BASH_SOURCE" "$@" errcatch() {