Get app name

This commit is contained in:
Bob Mottram 2016-11-24 14:17:40 +00:00
parent d37e93f69b
commit 2133adc407
1 changed files with 2 additions and 2 deletions

View File

@ -160,8 +160,8 @@ function export_to_keepass {
echo ' <group>' >> $filename echo ' <group>' >> $filename
echo " <title>$USERNAME</title>" >> $filename echo " <title>$USERNAME</title>" >> $filename
echo ' <icon>0</icon>' >> $filename echo ' <icon>0</icon>' >> $filename
for a in /root/.passwords/$USERNAME/*/ ; do for a in /root/.passwords/$USERNAME/* ; do
APP_NAME=$(echo "$a" | awk -F '/' '{print $5}') APP_NAME=$(basename $a)
app_password=$(${PROJECT_NAME}-pass -u $USERNAME -a $APP_NAME) app_password=$(${PROJECT_NAME}-pass -u $USERNAME -a $APP_NAME)
echo ' <entry>' >> $filename echo ' <entry>' >> $filename
echo " <title>$APP_NAME</title>" >> $filename echo " <title>$APP_NAME</title>" >> $filename