Skip to content

Commit 48612d2

Browse files
committed
error out when the distro is immutable but not ubuntu touch
1 parent cdb6991 commit 48612d2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/setupfunc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ function setup_home-manager (){
102102
function setup() {
103103
check_path;
104104
rootfstat=$(rorw);
105+
lsbstat=$(lsb_release -is);
105106
if [[ "$rootfstat" = "rw" ]];
106107
then
107108
if check_cmd apt;
@@ -113,9 +114,12 @@ function setup() {
113114
else
114115
err 'only debian based systems are currently supported';
115116
fi
116-
else
117+
elif [[ "$lsbstat" = "Ubuntu" ]];
118+
then
117119
if ! check_cmd nix; then pkgsetup; fi
118120
if ! check_cmd nix; then setup_curlxz; fi
121+
else
122+
err "$lsbstat is currently not supported";
119123
fi
120124
setup_home-manager;
121125
if [ -d $APTCACHE ]; then pkgunset; fi

0 commit comments

Comments
 (0)