Skip to content
Snippets Groups Projects
Commit 2133adc4 authored by Bob Mottram's avatar Bob Mottram
Browse files

Get app name

parent d37e93f6
No related branches found
No related tags found
No related merge requests found
......@@ -160,8 +160,8 @@ function export_to_keepass {
echo ' <group>' >> $filename
echo " <title>$USERNAME</title>" >> $filename
echo ' <icon>0</icon>' >> $filename
for a in /root/.passwords/$USERNAME/*/ ; do
APP_NAME=$(echo "$a" | awk -F '/' '{print $5}')
for a in /root/.passwords/$USERNAME/* ; do
APP_NAME=$(basename $a)
app_password=$(${PROJECT_NAME}-pass -u $USERNAME -a $APP_NAME)
echo ' <entry>' >> $filename
echo " <title>$APP_NAME</title>" >> $filename
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment