mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
ensure $USER is set
This commit is contained in:
@@ -6,6 +6,8 @@ set -o nounset
|
|||||||
set -o errexit
|
set -o errexit
|
||||||
set -o shwordsplit 2>/dev/null || true # Make zsh behave like bash
|
set -o shwordsplit 2>/dev/null || true # Make zsh behave like bash
|
||||||
|
|
||||||
|
USER=${USER:-$(id -un)}
|
||||||
|
|
||||||
case $(uname) in
|
case $(uname) in
|
||||||
Linux)
|
Linux)
|
||||||
FINDTYPE="-xtype"
|
FINDTYPE="-xtype"
|
||||||
|
|||||||
Reference in New Issue
Block a user