tableflip

This commit is contained in:
Alexandre Aubin 2024-07-04 00:26:37 +02:00
parent 98cf99543f
commit d383dcebfb

View file

@ -10,12 +10,12 @@ get__arg9() {
cat << EOF cat << EOF
ask: ask:
en: | en: |
### Files in $final_path ### Files in $install_dir
| Name | weight | | Name | weight |
| ---- | ------ | | ---- | ------ |
EOF EOF
for file in $final_path/* ; do for file in $install_dir/* ; do
echo " | $file | $(du -sh $file | cut -f1) |" echo " | $file | $(du -sh $file | cut -f1) |"
done done
} }
@ -50,8 +50,8 @@ validate__arg8() {
set__arg8() { set__arg8() {
if [ -n "${arg8}" ] if [ -n "${arg8}" ]
then then
python -c "import crypt; print(crypt.crypt(\"${arg8}\", \"\$6\$saltsalt\$\"))" > $final_path/password python -c "import crypt; print(crypt.crypt(\"${arg8}\", \"\$6\$saltsalt\$\"))" > $install_dir/password
ynh_print_info "The hash of your password has been registered in $final_path/password" ynh_print_info "The hash of your password has been registered in $install_dir/password"
fi fi
} }