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