Skip to content

Commit e21a1ab

Browse files
author
Chris Townsend
committed
hooks: apt warning should return an error
Since apt cannot be used on core, it should be an error and the exit return code should specify as such.
1 parent 970f9c5 commit e21a1ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

live-build/hooks/400-create-apt-get-warning.binary

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ mkdir -p $PREFIX/usr/local/bin
88
cat >$PREFIX/usr/local/bin/no-apt <<EOF
99
#!/bin/sh
1010
echo "Ubuntu Core does not use apt-get, see 'snap --help'!"
11+
exit 1
1112
EOF
1213
chmod 755 $PREFIX/usr/local/bin/no-apt
1314

0 commit comments

Comments
 (0)