feat(pass): rename store-dotenv and restore-dotenv to save-dotenv and load-dotenv for clarity
This commit is contained in:
3 files changed
+13
-7
No files matched your search
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
function restore-dotenv() {
|
||||
function load-dotenv() {
|
||||
if pass find "$PASS_ENTRY" >/dev/null; then
|
||||
echo "Restore .env file from pass: $PASS_ENTRY"
|
||||
pass show "$PASS_ENTRY" > .env
|
||||
@@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
function store-dotenv() {
|
||||
function save-dotenv() {
|
||||
if [ -f .env ]; then
|
||||
echo "Store .env file in pass: $PASS_ENTRY"
|
||||
cat .env | pass insert -m -f "$PASS_ENTRY"
|
||||
else
|
||||
echo "No .env file found."
|
||||
fi
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user