Get app name
This commit is contained in:
parent
d37e93f69b
commit
2133adc407
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue