Skip to content

Commit 8a1e673

Browse files
committed
Still working on getting the remote user to work.
1 parent eadd657 commit 8a1e673

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/atuin/devcontainer-feature.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Atuin CLI",
33
"id": "atuin",
4-
"version": "0.1.4",
4+
"version": "0.1.5",
55
"description": "A feature to install Atuin",
66
"options": {
77
"completion": {

src/atuin/install.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ echo "Activating feature 'Atuin'"
66
COMPLETION=${COMPLETION:-true}
77
echo "Atuin completion files installed: $COMPLETION"
88

9-
DIRECTORY=${HOME:-$_REMOTE_USER_HOME}
9+
# feature scripts run as root but we want to install atuin for the container
10+
# or remote user
11+
# https://containers.dev/implementors/features/#user-env-var
12+
DIRECTORY="$_REMOTE_USER_HOME"
1013

1114
export DEBIAN_FRONTEND=noninteractive
1215
apt_get_update()

src/atuin/scripts/postAttachCommand.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33

44
# check a file for the given string if it exists do nothing. If it doesn't exist, add the string to the file.
55
checkFileForString() {
6-
if ! grep -q "$1" "$2"; then
6+
if ! grep -sq "$1" "$2"; then
77
echo "$1" >> "$2"
88
fi
99
}

0 commit comments

Comments
 (0)