-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check if type of list elements are strings
The members of lists specified in the YAML configuration for mmdebstrap are expected to be strings. Add a check for that to prevent mmdebstrap from failing due to malformed parameters. Signed-off-by: Benjamin Drung <[email protected]>
- Loading branch information
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: wrong-element-type | ||
mmdebstrap: | ||
customize-hooks: | ||
# Make vim the default editor | ||
- chroot "$1" update-alternatives --set editor /usr/bin/vim.basic | ||
# Passwordless sudo | ||
- sed -i 's/^%sudo.*$/%sudo ALL=(ALL:ALL) NOPASSWD: ALL/' "$1/etc/sudoers" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters