Closed omertuc closed 3 months ago
df8885777d2257a6271ca1a6461673d1d96e99d6
The current error handling for multiple subuid ranges is broken due to surprising behavior of wc -l which always returns 1 even when the input is empty.
wc -l
1
More carefully count the number of lines in the CURRENT_USER_SUBUID_RANGE variable
CURRENT_USER_SUBUID_RANGE
https://github.com/omertuc/ai-lab-recipes/commit/50fb00f26f921bc5e420bed4e43d275a600e9b4c had a small merge error, this commit fixes that.
/lgtm /approve
Needs a rebase or to be closed, it the code was already merged.
Force pushed to fix conflicts
LGTM
Background
df8885777d2257a6271ca1a6461673d1d96e99d6
Issue
The current error handling for multiple subuid ranges is broken due to surprising behavior of
wc -l
which always returns1
even when the input is empty.Solution
More carefully count the number of lines in the
CURRENT_USER_SUBUID_RANGE
variableAdditional changes
https://github.com/omertuc/ai-lab-recipes/commit/50fb00f26f921bc5e420bed4e43d275a600e9b4c had a small merge error, this commit fixes that.