Skip to content

Commit 755d4bd

Browse files
authoredMar 5, 2019
Merge pull request canonical#103 from townsend2010/fix-apt-support-return-code
hooks: apt warning should return an error
2 parents 970f9c5 + e21a1ab commit 755d4bd

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)
Please sign in to comment.